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
|
${LH_ROOT_COMMAND} umount chroot/selinux
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
rm -rf chroot/selinux
|
if [ -e chroot/selinux ]
|
||||||
mkdir -p chroot/selinux
|
then
|
||||||
|
rm -rf chroot/selinux
|
||||||
|
mkdir -p chroot/selinux
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Removing stage file
|
# Removing stage file
|
||||||
|
|
Loading…
Reference in New Issue