mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-06 04:34:19 +01:00
create: Allow jail dir to be mounted under UFS
This commit is contained in:
@@ -341,8 +341,14 @@ create_jail() {
|
|||||||
else
|
else
|
||||||
mkdir -p "${bastille_jailsdir}/${NAME}/root"
|
mkdir -p "${bastille_jailsdir}/${NAME}/root"
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
## PoC for Linux jails @hackacad
|
## PoC for Linux jails @hackacad
|
||||||
if [ -n "${LINUX_JAIL}" ]; then
|
if [ -n "${LINUX_JAIL}" ]; then
|
||||||
info "\nCreating a linuxjail. This may take a while...\n"
|
info "\nCreating a linuxjail. This may take a while...\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user