mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-02 18:58:11 +01:00
create: Allow jail dir to be mounted under UFS
This commit is contained in:
@@ -341,8 +341,14 @@ create_jail() {
|
||||
else
|
||||
mkdir -p "${bastille_jailsdir}/${NAME}/root"
|
||||
fi
|
||||
# Check if the jail directory has been mounted under UFS
|
||||
elif [ ! -d "${bastille_jailsdir}/${NAME}/root" ] && ! checkyesno bastille_zfs_enable; then
|
||||
if mount | grep "${bastille_jailsdir}/${NAME}" | grep -oq "ufs"; then
|
||||
mkdir -p "${bastille_jailsdir}/${NAME}/root"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
## PoC for Linux jails @hackacad
|
||||
if [ -n "${LINUX_JAIL}" ]; then
|
||||
info "\nCreating a linuxjail. This may take a while...\n"
|
||||
|
||||
Reference in New Issue
Block a user