+++ This bug was initially created as a clone of Bug #975760 +++ $ truncate -s 1G /tmp/image $ LIBGUESTFS_BACKEND=direct \ guestfish add-drive-ro-with-if /tmp/image virtio : run -v libguestfs hangs (actually supermin hangs) when trying to mount the root (appliance) disk. The reason is that root=/dev/sdb was passed on the kernel command line, but the actual disks present in the appliance are: /dev/vda: the added disk /dev/sda: the appliance libguestfs direct backend should be changed so that it doesn't count virtio-blk disks when calculating the appliance disk's offset. This affects libguestfs 1.20 and 1.22.
Fixed upstream in: f7fe7e8db021b13f40aba56722d6ebe58e3777d2 Regression test: d8a3185823e608dbddbc6185209951140b8f3b33