Carlos Meza
873ac802e9
use upstream json_minify
2018-02-11 08:29:18 +00:00
Anders Ingemann
803ec8e987
Merge pull request #450 from CMeza99/bootstraper_gpg
...
Expose gpg flags for debootstrap
2018-02-10 23:11:40 +01:00
Carlos Meza
d2e00a8173
remove init.d file for squeeze
2018-02-10 03:27:59 +00:00
Carlos Meza
5727550ad4
expose gpg flags for debootstrap
2018-02-09 22:19:59 +00:00
Anders Ingemann
1d755abfc6
Merge pull request #449 from CMeza99/remove_eol
...
Remove squeeze support
2018-02-08 09:45:19 +01:00
Carlos Meza
a3584e6de9
remove squeeze support
2018-02-08 06:02:20 +00:00
Anders Ingemann
6b99432ac7
Merge pull request #445 from vmlintu-nosto/mountpoint_permissions
...
Allow setting permissions on mountpoints
2018-02-08 00:06:14 +01:00
Veli-Matti Lintu
a0007b48a9
Add new attribute 'mode' for partitions to set the permissions of the
...
mountpoints. Without this having /tmp on separate partition results
in error as the permissions of /tmp are 0755. Setting them to 01777
fixes the setup.
2018-02-06 15:56:24 +02:00
Marcin Engelmann
8e92cf7db9
Add comment-header to files deployed by bootstrap-vz ( resolves #429 )
2018-01-20 18:18:56 +01:00
Anders Ingemann
f00c63eaeb
Merge pull request #435 from octivi/grub_console
...
Minor changes to GRUB configuration regarding console and serial console
2018-01-18 22:12:41 +01:00
Marcin Engelmann
fb31ae3c70
Minor changes to GRUB configuration regarding console and serial console
2018-01-18 14:13:51 +01:00
Marcin Engelmann
c3739b875b
Removed generate-ssh-hostkeys stub-script left for backward compatibility
2018-01-18 09:48:13 +01:00
Marcin Engelmann
d640311ab6
Refactorized generation of OpenSSH host keys with a new systemd unit.
2018-01-17 20:46:11 +01:00
Anders Ingemann
fe0f8eba5b
Merge pull request #426 from octivi/remove_ssh_host_ed25519_key
...
Remove ED25519 ssh host key pair from image
2018-01-14 17:22:06 +01:00
Marcin Engelmann
e8edec7be1
Remove ED25519 ssh host key pair from image ( resolves #425 , workaround for #432 )
2018-01-14 14:54:34 +01:00
Marcin Engelmann
6bb167f361
Clear the machine ID for jessie and newer releases (systemd) ( resolves #427 )
2018-01-14 14:27:20 +01:00
Alex Hegedus
c0350e7c8a
Added security field to packages.
2017-11-27 18:48:57 -08:00
Carlos Meza
5824d0775e
allow networking task when netbase pkg is present
2017-11-22 20:28:01 -08:00
Zach Marano
79a1aa1616
Add GCE buster builds.
2017-08-30 17:50:27 -07:00
Anders Ingemann
19e15d15bf
Partitions: Fix check for additional partitions on single part.
2017-08-20 10:37:28 +02:00
Anders Ingemann
85a0e6a191
Make trusted-keys paths in manifest relative to manifest
2017-07-14 18:25:07 +02:00
Anders Ingemann
58c682818c
Merge pull request #382 from Exy13/existing_commands
...
Fix unfailing CheckExternalCommands
2017-07-02 19:55:05 +02:00
Brendan Harley
acb17a98d0
Add executable check to find_executable
...
Find_executable returns a file in the path, so it must be checked for
executability.
2017-07-02 17:16:25 +02:00
Zach Marano
7066efe9d1
Add buster as testing and promote stretch to stable, jessie to oldstable. Stretch release to stable is June 17.
2017-06-16 12:31:58 -07:00
Brendan Harley
cc69173e52
Add qcow2 as a disk backend for KVM
...
This allows to build an image with qcow2 as a disk backend.
The update implements a new class that inherits from QEMUVolume and just
needs the extention and file format.
2017-06-16 15:54:51 +02:00
Anders Ingemann
3e5c94f0d4
Merge pull request #381 from Exy13/lvm
...
Add LVM as a disk backend
2017-06-08 21:55:34 +02:00
Brendan Harley
511a44f72e
Add LVM as a disk backend
...
Enables the use of Logical Volumes as disk backends.
It uses an existing volume group and has no support for creating a new one.
It will not override an existing logical volume and fail gracefully.
The lv is created, activated and then mounted as a loop device.
The boostraping process is then launched on the loop device.
Once the process is completed, the lv is unmounted and desactivated.
The created lv will be deleted should the boostraping process fail.
The lv must be activated before use.
A manifest has been included for testing purposes.
2017-06-08 17:05:48 +02:00
Brendan Harley
df3a200df3
Fix unfailing CheckExternalCommands
...
On Unix, with shell=True, the shell default to /bin/sh.
Using Popen(['type', command], shell=True) is equivalent to calling
Popen(['/bin/sh', '-c', 'type', command]).
In this case 'command' becomes a positional parameter to the shell,
and not an argument to the command 'type'.
The solution is to pass a single string as parameter.
The problem is that with shell=True, we are never safe from a shell injection,
so it is wiser to use a python only solution.
The package distutils is part of the standard distribution, so it doesn't add
extra dependencies.
The method find_executable has the same behaviour as 'which' on bash.
2017-05-31 22:28:04 +02:00
Brendan Harley
a901963200
Fix loopdevice partitions not being unmapped correctly
2017-05-14 21:24:28 +02:00
Anders Ingemann
a40c639c3c
Move some package adding tasks into the preparation phase
2017-04-15 10:01:27 +02:00
Zach Marano
96ebfe11fa
Fix bug in Stretch builds. sshd_config no longer contains
...
PermitRootLogin. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852781
2017-03-28 20:24:41 +02:00
Anders Ingemann
a4e4ad9954
Merge pull request #355 from n3ph/master
...
Add mountopts and enable definition of additional partitions
2017-02-13 23:16:08 +01:00
Michael Gerlach
4eb90a544e
type is never going to be a partition
2017-02-04 16:15:24 +01:00
Stefan
64e1020e6d
fix pep8
2017-02-01 20:16:23 +01:00
Michael Gerlach
5a4719c236
remove semicolons.. :-/
2017-02-01 18:38:37 +01:00
Michael Gerlach
ff4918f1e0
sort out UnformattedPartitions nicer
2017-01-31 21:45:40 +01:00
Zach Marano
84f258e748
Fixes to create stretch images. Add stretch manifest for GCE.
2017-01-10 13:30:31 -08:00
Michael Gerlach
519ff5e605
Remove debug output
2016-12-10 20:09:35 +01:00
Michael Gerlach
167a0af4ce
Add handling for addtitional partitions
2016-12-10 16:11:58 +01:00
Michael Gerlach
87707486cd
Add mountopts to classes and methods
2016-12-10 16:11:58 +01:00
Anders Ingemann
ee18fc84ca
Fix some task ordering warnings
2016-12-01 15:59:51 +01:00
Anders Ingemann
c81eacf02f
PEP8 compliance
...
bootstrapvz/common/task_groups.py:137:1: E305 expected 2 blank lines after class or function definition, found
1
2016-12-01 15:08:47 +01:00
Marcin Kulisz
18f31df2f4
Stretch (9.0) patch #3 - EC2: fixing insserv & +
...
ssh keys removal for releases after Jessie
2016-09-24 19:03:28 +01:00
Anders Ingemann
e5c96195bb
Merge pull request #341 from nbraud/rel_path
...
Use the rel_path utility function
2016-09-20 16:34:07 +02:00
Anders Ingemann
a86337cc69
Merge pull request #335 from nbraud/admin_user
...
admin_user & file_copy: Make paths relative to the manifest
2016-09-20 16:33:59 +02:00
Nicolas Braud-Santoni
90da634226
Systematically use rel_path for relative paths
2016-09-12 19:11:20 +02:00
Nicolas Braud-Santoni
d8c831a7fa
common.tools: Make rel_path normalize the path
2016-09-12 18:15:56 +02:00
Nicolas Braud-Santoni
734afd892b
common.tools: Add a function for relative pathes
...
rel_path(a, b) is the absolute path of b, taken relative to a.
If b is already an absolute path, rel_path(a, b) is b.
2016-09-12 17:37:44 +02:00
Anders Ingemann
f71eac2c39
Merge pull request #333 from nbraud/validate-trusted-keys
...
apt: Validate packages.trusted-keys
2016-09-12 07:38:31 +02:00
Nicolas Braud-Santoni
58a7011348
apt: Validate trusted keys
...
This checks that the specified keyrings exist, and are valid.
Closes #323
2016-09-12 01:13:39 +02:00