Skip to content

Commit 5308b66

Browse files
smitterlqiankehan
andauthored
libvirt_disk: add "/sysroot" as root mountpoint (avocado-framework#4161) (avocado-framework#4230)
For the common images, the root mountpoint is "/". It looks like: vda ├─vda1 /boot/efi ├─vda2 /boot └─vda3 ├─rhel-root / └─rhel-swap [SWAP] For the image of rhel image mode, the root mountpoint is "/sysroot". It looks like: vda ├─vda1 ├─vda2 /boot/efi ├─vda3 /boot └─vda4 /sysroot Add "/sysroot" as root mountpoint for image mode. Signed-off-by: Han Han <hhan@redhat.com> Co-authored-by: Han Han <hhan@redhat.com>
1 parent c6d754f commit 5308b66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

virttest/utils_libvirt/libvirt_disk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_non_root_disk_names(session, ignore_status=False):
9292
else:
9393
idx = idx - 1
9494
continue
95-
if mpoint == "/":
95+
if mpoint in ["/", "/sysroot"]:
9696
root_mounted = True
9797
if is_disk:
9898
root_disk = line

0 commit comments

Comments
 (0)