From 963dbe09c98c8db0bf513e141b2b0922e5545d7c Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Wed, 23 Apr 2025 19:58:09 -0600 Subject: [PATCH] =?UTF-8?q?mount:=20Create=20host=20path=20if=20it=20doesn?= =?UTF-8?q?=E2=80=99t=20exist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/local/share/bastille/mount.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/local/share/bastille/mount.sh b/usr/local/share/bastille/mount.sh index d58664fe..ee6e289e 100644 --- a/usr/local/share/bastille/mount.sh +++ b/usr/local/share/bastille/mount.sh @@ -115,6 +115,8 @@ if { [ "${_hostpath}" = "tmpfs" ] && [ "$_type" = "tmpfs" ]; } || \ { [ "${_hostpath}" = "proc" ] && [ "${_type}" = "procfs" ]; } || \ { [ "${_hostpath}" = "fdesc" ] && [ "${_type}" = "fdescfs" ]; } then warn "Detected advanced mount type ${_hostpath}" +elif [ ! -e "${_hostpath}" ] && [ "${_type}" = "nullfs" ]; then + mkdir -p "${_hostpath}" elif [ ! -e "${_hostpath}" ] || [ "${_type}" != "nullfs" ]; then error_notify "Invalid host path or incorrect mount type in FSTAB." warn "Format: /host/path /jail/path nullfs ro 0 0"