summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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