~raharper/curtin:fix/better-fstab-entries

Last commit made on 2020-01-29
Get this branch:
git clone -b fix/better-fstab-entries 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/better-fstab-entries
Repository:
lp:~raharper/curtin

Recent commits

ef7a744... by Ryan Harper on 2020-01-29

Add comment on disk/part s390x by-path choice.

d64d65d... by Ryan Harper on 2020-01-29

remove osfamily param for now

161aeb8... by Ryan Harper on 2020-01-29

Update comment to point to unittests which have examples.

93c7b28... by Ryan Harper on 2020-01-24

revert debugging change

882995f... by Ryan Harper on 2020-01-23

fstab: use by-path symlinks on s390x

f8c8a97... by Ryan Harper on 2020-01-23

Add bcache unittest

491bd8f... by Ryan Harper on 2019-12-12

Drop unused imports

80404e8... by Ryan Harper on 2019-12-12

vmtest: refactor verification of fstab

With the changes to the contents of fstab depending on the
storage device type, we need to do some additional work to
determine the expected value from other parts of the system
and compare that to what's present in fstab.

In particular, we use dname or serials to look up device names
which can be used to look up other persistent storage device
symlinks in /dev/disk/by-id which we expect to be in fstab.

For bcache, we now verify that we have /dev/bcache/by-uuid
For lvm, raid, we verify /dev/disk/by/{dm|md}-uuid symlinks

This branch also added a fstab header to match what's present
in Ubiquity/d-i installers.

To enable this, a number of helper functions were added to
the VMBaseClass, including a new method to fetch the expected
fstab entry values at runtime, rather than defined in the class.

2bae971... by Ryan Harper on 2019-12-09

Indicate get_volume_type is private

a9e7899... by Ryan Harper on 2019-12-09

Add unittest for get_volume_spec