summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-10-12 11:16:21 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:42 +0100
commitc977712868e857def61bc6e337e70b9e9c08ffd3 (patch)
tree5f29c9a54f14b345d695423ec9eca321ee9120c9 /helpers
parent7ce22c258dd6a3fd8572cce209b95780d200c31f (diff)
downloadlive-build-c977712868e857def61bc6e337e70b9e9c08ffd3.zip
live-build-c977712868e857def61bc6e337e70b9e9c08ffd3.tar.gz
Making removal stage of lh_chroot_selinuxfs dependent on the existence of /selinux, otherwise that directory would be always created in the chroot.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_chroot_selinuxfs7
1 files changed, 5 insertions, 2 deletions
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