mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
rescue: Fix test to deal with new --suggest output.
Fixed commit 72fd0531ab.
This commit is contained in:
@@ -34,10 +34,9 @@ $VG virt-rescue --suggest "$guest" |
|
||||
|
||||
if [ "$(cat virt-rescue-suggest.out)" != "mount /dev/VG/Root /sysroot/
|
||||
mount /dev/sda1 /sysroot/boot
|
||||
mount --bind /dev /sysroot/dev
|
||||
mount --bind /dev/pts /sysroot/dev/pts
|
||||
mount --bind /proc /sysroot/proc
|
||||
mount --bind /sys /sysroot/sys" ]; then
|
||||
mount --rbind /dev /sysroot/dev
|
||||
mount --rbind /proc /sysroot/proc
|
||||
mount --rbind /sys /sysroot/sys" ]; then
|
||||
echo "$0: unexpected output from virt-rescue --suggest command:"
|
||||
cat virt-rescue-suggest.out
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user