~raharper/curtin:fix/block-meta-first-partition

Last commit made on 2018-06-15
Get this branch:
git clone -b fix/block-meta-first-partition https://git.launchpad.net/~raharper/curtin
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Branch information

Name:
fix/block-meta-first-partition
Repository:
lp:~raharper/curtin

Recent commits

fd4686b... by Ryan Harper

Drop unused determine_partition_number and reduce vmtests for partition order

1dbaa96... by Ryan Harper

Clean up use of self.device, add mirrorboot unittest

5a9f61d... by Ryan Harper

Drop multi boot disk unittest, that's a valid use case

e04dae3... by Ryan Harper

Fix syntax error from merge

2fd6771... by Ryan Harper

Merge remote-tracking branch 'diglett/fix/block-meta-first-partition' into fix/block-meta-first-partition

24f33b2... by Ryan Harper

additional update partition unittests

ca5e941... by Ryan Harper

Fix Mirrorboot configurations with partition info update

Drop the multi-disk boot check, Mirrorboot is a supported use-case
where two disks are mirrored and so both disks need to have grub
installed in case one drive fails.

For RAID0 devices, one can create partitions on the md device, however
most of block_meta code expects that the 'device' under a partition
already exists. This is true for most partitions but since the md
device won't yet be created, we need to handle determining the logical
sector size for proper partition sector start, end and length values.
For raid0, we examine the raid config for devices which will compose
the raid and extract the logical sector size from the elements.

Finally, update the vmtest storage yaml to ensure they properly create
the same partitions needed for booting on both drives in the mirror.

0e71f0a... by Ryan Harper

Fix use of logical_sector_size info from disk device config

d443737... by Ryan Harper

Fix copying original configs not modified when updating partition info

87f7427... by Ryan Harper

vmtest: cover partition order test

Add a vmtest for partition order and the following changes

- block-meta:
  - write out the updated storage_config yaml and the
    OrderedDict id mapping as yaml
  - Add method to convert OrderedDict mapping to storage config
- vmtests:
  - move collection of /dev/disk/{by-id, by-dname, by-uuid},
    /proc/mounts, /proc/partitions, /etc/fstab to base class