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:
parent
7ce22c258d
commit
c977712868
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue