From d1325ad96fa3ae27e74c192b36d858353f751d0c Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sun, 26 Jul 2009 15:18:31 +0200 Subject: clear $PART_ROOT on rollback of / --- src/core/libs/lib-blockdevices-filesystems.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh index d971db0..a8a7dcf 100644 --- a/src/core/libs/lib-blockdevices-filesystems.sh +++ b/src/core/libs/lib-blockdevices-filesystems.sh @@ -487,6 +487,11 @@ rollback_filesystems () if umount $part_real >$LOG then done_umounts+=("$part_real") + if [ "$fs_mount" = target -a "$fs_mountpoint" = '/' ] + then + debug FS "clearing \$PART_ROOT (was: $PART_ROOT)" + PART_ROOT= + fi else warnings="$warnings\nCould not umount umount $part_real . Probably device is still busy. See $LOG" show_warning "Umount failure" "Could not umount umount $part_real . Probably device is still busy. See $LOG" #TODO: fix device busy things -- cgit v1.2.3-54-g00ecf