From f54c7ed9db3bf333c810930866adab0d04903c2b Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 15 Apr 2006 20:20:12 +0000 Subject: HEADS UP: Major changes in how config is fetched from jail config. A major variable renaming took place. A new subcommand config has been introduced. Jails can be configured not to be run automatically. Crypto images do not work anymore if made with an older version. (Due to config file variable renaming) .norun has been set as standard "do not run" name. However, any . is enough to prevent booting the jail. --- ezjail.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ezjail.sh') diff --git a/ezjail.sh b/ezjail.sh index ff072f4..0b1d68f 100755 --- a/ezjail.sh +++ b/ezjail.sh @@ -62,13 +62,13 @@ do_cmd() eval ezjail_root=\"\$jail_${ezjail}_rootdir\" eval ezjail_image=\"\$jail_${ezjail}_image\" - eval ezjail_crypt=\"\$jail_${ezjail}_cryptimage\" + eval ezjail_imagetype=\"\$jail_${ezjail}_imagetype\" # Cannot auto mount crypto jails without interrupting boot process - [ "${ezjail_fromrc}" = "YES" -a "${ezjail_crypt}" = "YES" -a "${action}" = "start" ] && continue + [ "${ezjail_fromrc}" = "YES" -a "${ezjail_imagetype}" = "crypto" -a "${action}" = "start" ] && continue # Explicitely do only run crypto jails when *crypto is requested - [ "${action%crypto}" != "${action}" -a "${ezjail_crypt}" != "YES" ] && continue + [ "${action%crypto}" != "${action}" -a "${ezjail_imagetype}" != "crypto" ] && continue # Try to attach (crypto) devices [ "${ezjail_image}" ] && attach_detach_pre -- cgit v1.2.3