mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-24 11:12:12 +01:00
create: Error when jail is mounted using UFS
This commit is contained in:
@@ -341,10 +341,10 @@ create_jail() {
|
||||
else
|
||||
mkdir -p "${bastille_jailsdir}/${NAME}/root"
|
||||
fi
|
||||
# Check if the jail directory has been mounted under UFS
|
||||
# Check if the jail directory has been mounted under UFS (not supported)
|
||||
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"
|
||||
error_exit "[ERROR]: Using UFS mounts for the jail directory is not supported."
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user