- # 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 ('$_')";
- }