Anders Ingemann
01208c61b5
Subtract gpt_offset from first real partition
...
... and not from grub_boot
2014-02-03 17:25:50 +01:00
Anders Ingemann
e20c7f9391
The grub partition for GPT only needs 1007KiB
2014-01-19 13:21:35 +01:00
Anders Ingemann
a840dc28f3
MBR-gap, grub and GPT offset are now subtracted
...
automatically from the first available partition.
There is no need to fiddle with sizes while keeping the offsets in mind any longer.
Introduced Bytes() class which makes it a lot easier to handle size units.
2014-01-19 13:21:35 +01:00
Anders Ingemann
3c39ac6734
Minor changes to GPT and grub support
2014-01-19 10:46:59 +01:00
Anders Ingemann
328b971289
GPT support for both extlinux and grub
2014-01-19 01:02:29 +01:00
Anders Ingemann
81a4ec78eb
Post-MBR size increased to 2.
...
Also, move the size addition into the volume model
2014-01-18 23:35:21 +01:00
Anders Ingemann
1e97600013
Label GPT partitions
2014-01-18 23:27:52 +01:00
Anders Ingemann
889812b1ad
Rename MBR partition table to MSDOS
...
Calling it MBR is just confusing
2014-01-18 23:27:52 +01:00
Anders Ingemann
8165297a02
Generalize link_dm_node() it works for all devices
...
Also accept some new parameters to adjust offsets and startsecotrs when creating the disk mapping
2014-01-18 16:36:41 +01:00
Anders Ingemann
8b5bc77650
Fallback values in a prettier way
2014-01-05 02:25:29 +01:00
Anders Ingemann
1d69f65a7f
Support for vmdk disk format
2013-12-29 16:50:22 +01:00
Anders Ingemann
51041f6aa2
Generalize VirtualBoxVolume, introduce QEMUVolume
2013-12-29 16:50:22 +01:00
Anders Ingemann
293557827f
Fix PEP8 style fixes
2013-12-14 23:18:43 +01:00
Anders Ingemann
637f49904a
Move swap partition before root
2013-12-14 23:18:40 +01:00
Anders Ingemann
2af0968156
Implement partition mounts.
...
This solves quite a few challenges with mounting directories into root etc.
2013-12-14 23:18:39 +01:00
Anders Ingemann
970cbfccf2
Fix bug when fetching fsm state
2013-12-14 23:18:39 +01:00
Anders Ingemann
6c800145dc
Alias s3 backing to raw
2013-10-27 18:11:59 +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
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
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
8891a18e4b
Remove mount_specials from FSM
...
It makes modelling the different states more complicated
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
8aefa93646
Remove map and unmap methods on singlepartitionmap
2013-10-27 18:11:53 +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
efecc15382
VDI images working now
...
*Helpful error messages included
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