Files
libguestfs/tests
Laszlo Ersek 3221133140 tests: add LUKS-on-LVM test
Create a new (fake) Fedora disk image with two partitions. /dev/sda1 is
the boot partition as usual, /dev/sda2 is used as an LVM PV. The VG has
four LVs, Root and LV1 through LV3.

Each LV holds a LUKS device (with a different key). Each decrypted LUKS
device holds an ext2 filesystem, with "/dev/mapper/Root-luks" holding the
root filesystem.

Each filesystem has a dedicated label (ROOT, LV1, LV2, LV3).

In the test case, run guestfish in inspector mode, twice.

In the first invocation, provide the LUKS passphrases by LV name. Also
specific to the first invocation, fetch the LUKS UUIDs by LV name.

In the second invocation, provide the LUKS passphrases by UUID.

In both invocations, after decryption, check the filesystem labels, the
/dev/mapper/* names generated for the decrypted LUKS block devices, and
the existence of "/etc/fedora-release" on the root filesystem.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1658126
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20220223162120.16729-3-lersek@redhat.com>
Acked-by: Richard W.M. Jones <rjones@redhat.com>
2022-02-28 13:12:21 +01:00
..
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2022-02-28 13:12:21 +01:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2021-03-18 16:28:55 +00:00
2022-02-28 13:12:21 +01:00