Commit graph

475 commits

Author SHA1 Message Date
Anders Ingemann
1b5a1e0579 Fix missing package check
`dpkg-query -W parted` exits with 0 even if it is not installed
2013-10-27 18:11:58 +01:00
Anders Ingemann
a07e02cfcc Add required packages in the right places 2013-10-27 18:11:58 +01:00
Anders Ingemann
0fdcc2e27b Fix bug when no boot partition is specified 2013-10-27 18:11:58 +01:00
Anders Ingemann
e1ab4dc1ae EC2 provider can now bootstrap EBS volumes again
Use tasksets in EC2 provider
2013-10-27 18:11:58 +01:00
Anders Ingemann
754e414742 Document post-mbr gap and make it MBR-only 2013-10-27 18:11:58 +01:00
Anders Ingemann
ceae489210 Use remount() to create a clean snapshot 2013-10-27 18:11:58 +01:00
Anders Ingemann
b025f6ed35 Refactor remount() into common function 2013-10-27 18:11:57 +01:00
Anders Ingemann
f075d1f2b9 Remove ambiguous tasklist function replace() 2013-10-27 18:11:57 +01:00
Anders Ingemann
aa91bc701f Use add/remove instead of replace in rootpw plugin 2013-10-27 18:11:57 +01:00
Anders Ingemann
38bcb12c72 SetBootMountDir task in prebootstrapped plugin 2013-10-27 18:11:57 +01:00
Anders Ingemann
854ab4f202 Make fstab more generic 2013-10-27 18:11:57 +01:00
Anders Ingemann
a3006fbe47 Fix humongous brainfart 2013-10-27 18:11:56 +01:00
Anders Ingemann
d4601f08af Only install gen-hostkeys when sshd is installed 2013-10-27 18:11:56 +01:00
Anders Ingemann
54791268e1 Fix TuneFS task 2013-10-27 18:11:56 +01:00
Anders Ingemann
3dab414561 Final newline in fstab 2013-10-27 18:11:56 +01:00
Anders Ingemann
1bf61770d9 Access fsm states directly 2013-10-27 18:11:56 +01:00
Anders Ingemann
fb0fa1e94e Unmap partitions 2013-10-27 18:11:55 +01:00
Anders Ingemann
6ddd8809a3 Partitioning fixes 2013-10-27 18:11:55 +01:00
Anders Ingemann
c78866f103 Take partitionmap into consideration in device.map
Simplify boot task a little
2013-10-27 18:11:55 +01:00
Anders Ingemann
977b1f290f Remove duplicate task addition 2013-10-27 18:11:55 +01:00
Anders Ingemann
387aa62750 Remove FSM from NoPartitions p-map
Don't set the volume device_path by calling 'create'
2013-10-27 18:11:55 +01:00
Anders Ingemann
ba1842ca2b Move nbd modprobe check into separate function
Only require max_part param for partition manifests
2013-10-27 18:11:54 +01:00
Anders Ingemann
8891a18e4b Remove mount_specials from FSM
It makes modelling the different states more complicated
2013-10-27 18:11:54 +01:00
Anders Ingemann
fc0471f780 Remove init from LOVol, add mount_specials 2013-10-27 18:11:54 +01:00
Anders Ingemann
3993ff23a5 Less verbose checking of installed packages 2013-10-27 18:11:54 +01:00
Anders Ingemann
e740a3b4d8 Fix grub install 2013-10-27 18:11:54 +01:00
Anders Ingemann
3c32310346 Remove mountpoints from partitions 2013-10-27 18:11:54 +01:00
Anders Ingemann
ecdc255752 Simplify FSM framework. Only model relevant states 2013-10-27 18:11:53 +01:00
Anders Ingemann
c756eb3f74 Introduce task-sets to combat the unwieldy amount of tasks 2013-10-27 18:11:53 +01:00
Anders Ingemann
738ba47c65 Add references instead of instances to the tasklist 2013-10-27 18:11:53 +01:00
Anders Ingemann
8aefa93646 Remove map and unmap methods on singlepartitionmap 2013-10-27 18:11:53 +01:00
Anders Ingemann
4b2711893f Dont require package sysv-rc to be installed 2013-10-27 18:11:53 +01:00
Anders Ingemann
885ace7b48 Updates to networking in vbox 2013-10-27 18:11:53 +01:00
Anders Ingemann
5dcec10d65 Minimize required image packages 2013-10-27 18:11:52 +01:00
Anders Ingemann
53991bdad7 Rename loopback image to volume 2013-10-27 18:11:52 +01:00
Anders Ingemann
c744196d2f Fix required packages 2013-10-27 18:11:52 +01:00
Anders Ingemann
d6502089e2 Implemented both MBR and GPT partitioning.
VirtualBox seems to not like GPT
2013-10-27 18:11:14 +01:00
Anders Ingemann
8073edc902 Fix manifest a bit 2013-10-27 18:11:14 +01:00
Anders Ingemann
4f1533b475 Document some more dependencies 2013-10-27 18:11:14 +01:00
Anders Ingemann
6f05774d2c Try fixing grub, added some comments 2013-10-27 18:11:14 +01:00
Anders Ingemann
a9c465cf8c Minor fixes to paths 2013-10-27 18:11:14 +01:00
Anders Ingemann
efecc15382 VDI images working now
*Helpful error messages included
2013-10-27 18:11:13 +01:00
Anders Ingemann
6fb60a33f0 Get the loop device name in a less dramatic way 2013-10-27 18:11:13 +01:00
Anders Ingemann
c917c3bd65 Log commands executed 2013-10-27 18:11:13 +01:00
Anders Ingemann
0eb5eecfc2 Place everything in info.workspace
instead of spreading files all around the disk
2013-10-27 18:11:13 +01:00
Anders Ingemann
9cb4b3e375 Rename mount_dir to workspace
We'll be using it for a bucnh of different things in the future
2013-10-27 18:11:13 +01:00
Anders Ingemann
ff7c04c120 Support for partitions
MAJOR refactor. The volume is now abstracted into a model along with a partitionmap and partitions.
Volumes and partitions are now controlled via an FSM to ensure that commands are called in the proper sequence.
GRUB can now be installed properly onto loop devices by using dmsetup to fake a proper harddisk.
2013-10-27 18:11:12 +01:00
Anders Ingemann
77c8b36151 Added pause-on-error switch for debugging 2013-10-27 18:10:44 +01:00
Anders Ingemann
c1e931df5e Fix bug where log_call would not read all lines 2013-10-27 18:10:44 +01:00
Anders Ingemann
f3b89f08ff Merge pull request #100 from JamesBromberger/python
sed search&replace plugin
2013-10-07 23:53:35 -07:00