mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-22 18:21:53 +01:00
mount: Create host path if it doesn’t exist
This commit is contained in:
@@ -115,6 +115,8 @@ if { [ "${_hostpath}" = "tmpfs" ] && [ "$_type" = "tmpfs" ]; } || \
|
|||||||
{ [ "${_hostpath}" = "proc" ] && [ "${_type}" = "procfs" ]; } || \
|
{ [ "${_hostpath}" = "proc" ] && [ "${_type}" = "procfs" ]; } || \
|
||||||
{ [ "${_hostpath}" = "fdesc" ] && [ "${_type}" = "fdescfs" ]; } then
|
{ [ "${_hostpath}" = "fdesc" ] && [ "${_type}" = "fdescfs" ]; } then
|
||||||
warn "Detected advanced mount type ${_hostpath}"
|
warn "Detected advanced mount type ${_hostpath}"
|
||||||
|
elif [ ! -e "${_hostpath}" ] && [ "${_type}" = "nullfs" ]; then
|
||||||
|
mkdir -p "${_hostpath}"
|
||||||
elif [ ! -e "${_hostpath}" ] || [ "${_type}" != "nullfs" ]; then
|
elif [ ! -e "${_hostpath}" ] || [ "${_type}" != "nullfs" ]; then
|
||||||
error_notify "Invalid host path or incorrect mount type in FSTAB."
|
error_notify "Invalid host path or incorrect mount type in FSTAB."
|
||||||
warn "Format: /host/path /jail/path nullfs ro 0 0"
|
warn "Format: /host/path /jail/path nullfs ro 0 0"
|
||||||
|
|||||||
Reference in New Issue
Block a user