From 0075b0454d21740d63e4eb270e81e1ef910f434e Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 12 Sep 2006 11:17:02 +0000 Subject: Check for root dir before running a jail. Thanks to Matthias Lederhofer. --- ezjail.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ezjail.sh b/ezjail.sh index b51f515..1b78fd3 100755 --- a/ezjail.sh +++ b/ezjail.sh @@ -65,6 +65,9 @@ do_cmd() eval ezjail_attachblocking=\"\$jail_${ezjail}_attachblocking\" eval ezjail_forceblocking=\"\$jail_${ezjail}_forceblocking\" + # Do we still have a root to run in? + [ ! -d "${ezjail_rootdir}" ] && echo " Warning: root directory ${ezjail_rootdir} of ${ezjail} does not exist." && continue + [ "${ezjail_attachblocking}" = "YES" -o "${ezjail_forceblocking}" = "YES" ] && ezjail_blocking="YES" || unset ezjail_blocking # Cannot auto mount blocking jails without interrupting boot process -- cgit v1.2.3