[Debian-live-changes] r1068 - dists/trunk/live-helper/helpers
Daniel Baumann
daniel at alioth.debian.org
Tue Apr 17 08:34:22 UTC 2007
Author: daniel
Date: 2007-04-17 08:34:22 +0000 (Tue, 17 Apr 2007)
New Revision: 1068
Modified:
dists/trunk/live-helper/helpers/lh_binary_chroot
Log:
Modified: dists/trunk/live-helper/helpers/lh_binary_chroot
===================================================================
--- dists/trunk/live-helper/helpers/lh_binary_chroot 2007-04-17 08:31:33 UTC (rev 1067)
+++ dists/trunk/live-helper/helpers/lh_binary_chroot 2007-04-17 08:34:22 UTC (rev 1068)
@@ -45,9 +45,17 @@
# Creating lock file
Create_lockfile .lock
-#umount chroot/proc
-#umount chroot/sys
+# Normally, proc is not mounted here, but people tend to be lazy
+if [ -f chroot/proc/version ]
+then
+ umount chroot/proc
+fi
+if [ -d chroot/sys/kernel ]
+then
+ umount chroot/sys
+fi
+
# Removing old chroot
rm -rf chroot/chroot
rm -rf chroot.tmp
More information about the Debian-live-changes
mailing list