[SCM] Debian Live build scripts branch, master, updated. 1.0.1-1-22-g52e6728

Daniel Baumann daniel at debian.org
Sun Oct 12 09:20:27 UTC 2008


The following commit has been merged in the master branch:
commit 52e67287b900b7772d3db4a9f455f84dc9fc1e3f
Author: Daniel Baumann <daniel at debian.org>
Date:   Sun Oct 12 11:16:21 2008 +0200

    Making removal stage of lh_chroot_selinuxfs dependent on the existence of /selinux, otherwise that directory would be always created in the chroot.

diff --git a/helpers/lh_chroot_selinuxfs b/helpers/lh_chroot_selinuxfs
index 69340c6..ce19730 100755
--- a/helpers/lh_chroot_selinuxfs
+++ b/helpers/lh_chroot_selinuxfs
@@ -84,8 +84,11 @@ case "${1}" in
 				${LH_ROOT_COMMAND} umount chroot/selinux
 			fi
 		else
-			rm -rf chroot/selinux
-			mkdir -p chroot/selinux
+			if [ -e chroot/selinux ]
+			then
+				rm -rf chroot/selinux
+				mkdir -p chroot/selinux
+			fi
 		fi
 
 		# Removing stage file

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list