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

This commit is contained in:
Daniel Baumann 2008-10-12 11:16:21 +02:00
parent 7ce22c258d
commit c977712868
1 changed files with 5 additions and 2 deletions

View File

@ -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