mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
LUKS-on-LVM inspection test: test /dev/mapper/VG-LV translation
In the LUKS-on-LVM inspection test, call the "check_filesystems" function
yet another time, now with such "--key" options that exercise the recent
"/dev/mapper/VG-LV" -> "/dev/VG/LV" translation (unescaping) from
libguestfs-common.
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2168506
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20230519140849.310774-4-lersek@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
(cherry picked from commit 32408a9c36)
This commit is contained in:
committed by
Richard W.M. Jones
parent
826cf6d68e
commit
56d7564eaa
@@ -101,3 +101,21 @@ eval "$fish_ref"
|
||||
|
||||
# Repeat the test.
|
||||
check_filesystems
|
||||
|
||||
# Exit the current guestfish background process.
|
||||
guestfish --remote -- exit
|
||||
GUESTFISH_PID=
|
||||
|
||||
# Start up another guestfish background process, and specify the keys in
|
||||
# /dev/mapper/VG-LV format this time.
|
||||
keys_by_mapper_lvname=(
|
||||
--key /dev/mapper/Volume--Group-Root:key:FEDORA-Root
|
||||
--key /dev/mapper/Volume--Group-Logical--Volume--1:key:FEDORA-LV1
|
||||
--key /dev/mapper/Volume--Group-Logical--Volume--2:key:FEDORA-LV2
|
||||
--key /dev/mapper/Volume--Group-Logical--Volume--3:key:FEDORA-LV3
|
||||
)
|
||||
fish_ref=$("${guestfish[@]}" "${keys_by_mapper_lvname[@]}")
|
||||
eval "$fish_ref"
|
||||
|
||||
# Repeat the test.
|
||||
check_filesystems
|
||||
|
||||
Reference in New Issue
Block a user