Last commit made on 2020-05-05
Get this branch:
git clone -b fix/block-sfdisk-parsing 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


Recent commits

b584b27... by Ryan Harper

Simplfy config by dropping secondary disk and lvm config

87d75fa... by Ryan Harper

Rewrite comment in vmtest scenario to suit.

447466d... by Ryan Harper

Move runtime check on sfdisk_info return value at start of partition verify

6e5f001... by Ryan Harper

Refactor partition table type MAPs join them and reuse the lookup

d22a1c7... by Ryan Harper

Don't build a single list of multiple dictionary keys

- Also use the correct block function for getting partition sfdisk

99c9f3d... by Ryan Harper

Add some Additional test-cases, move sfdisk part finder to block

70b562e... by Ryan Harper

Add unittest for block.sfdisk_info

3a6e711... by Ryan Harper

Fix up pyflakes

401073b... by Ryan Harper

Make reuse msdos partitions verify and work

5d313e1... by Ryan Harper

Fix handing of reusing msdos partitions and flags

Disks with an MSDOS partition table and one partition with the
'bootable' flag set exposed parsing error in block.sfdisk_info;
further digging revealed that curtin was not setting the bootable
flag on MSDOS partitions when required. Not setting isn't fatal,
grub still boots the partition, but we should set the flag if told
to do so. Additionally storage-config conversion of probe data
where the MSDOS boot flag is set was missing. The following changes
are done to fix this issue

- switch to sfdisk --json output and use/introduce util.load_json()
- block-meta: update parted command to set boot flag if present
- block-discover: prefer ID_PART_ENTRY_FLAGS when present, and 0x80
- Add vmtest to verify reuse of msdos partition and bootable flag