summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-01-25 11:42:26 -0600
committerDavid Lehman <dlehman@redhat.com>2012-01-26 11:30:56 -0600
commit1f33bd200c2fe10523cd8a2492ef7a711b442f9e (patch)
tree583407f93ca909e5760c108f3142e1a12b080d70 /scripts
parentd5d198a6626190c4974b8782b615bdd2de0c6c4a (diff)
downloadanaconda-1f33bd200c2fe10523cd8a2492ef7a711b442f9e.tar.gz
anaconda-1f33bd200c2fe10523cd8a2492ef7a711b442f9e.tar.xz
anaconda-1f33bd200c2fe10523cd8a2492ef7a711b442f9e.zip
Check for live install before doing live-specific umounts.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/anaconda-cleanup2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/anaconda-cleanup b/scripts/anaconda-cleanup
index 4af96c553..42ef1b2ac 100755
--- a/scripts/anaconda-cleanup
+++ b/scripts/anaconda-cleanup
@@ -78,7 +78,7 @@ for mounted in reversed(open("/proc/mounts").readlines()):
# If this is for a live install, unmount any non-nodev filesystem that
# isn't related to the live image.
if (mountpoint.startswith("/media") or device.startswith("/dev")) and \
- not "live" in mounted:
+ live_install and not "live" in mounted:
os.system("umount %s" % mountpoint)
os.system("udevadm control --env=ANACONDA=1")