From c977712868e857def61bc6e337e70b9e9c08ffd3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 12 Oct 2008 11:16:21 +0200 Subject: Making removal stage of lh_chroot_selinuxfs dependent on the existence of /selinux, otherwise that directory would be always created in the chroot. --- helpers/lh_chroot_selinuxfs | 7 +++++-- 1 file 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 -- cgit v1.0