X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=inspector%2Fvirt-inspector.pl;h=b2983b3d35664d74a8ef3d26c39ef3d6c3340f4f;hp=216943104433462aa262c5e2dc8c7f29ca465ec0;hb=fa7c8bb79b45aecdf65ed93635a42f3fdf301134;hpb=0aa45a5662bcb96348bd4753fb0404991f713319 diff --git a/inspector/virt-inspector.pl b/inspector/virt-inspector.pl index 2169431..b2983b3 100755 --- a/inspector/virt-inspector.pl +++ b/inspector/virt-inspector.pl @@ -566,12 +566,6 @@ if ($output !~ /.*fish$/) { check_for_applications ($root_dev); check_for_kernels ($root_dev); - # umount_all in libguestfs is buggy - it doesn't unmount - # filesystems in the correct order. So let's unmount them - # in reverse first before calling umount_all as a last resort. - foreach (sort { $b cmp $a } keys %$mounts) { - eval "\$g->umount ('$_')"; - } $g->umount_all (); } }