diff options
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -62,13 +62,13 @@ do_cmd() | |||
62 | 62 | ||
63 | eval ezjail_root=\"\$jail_${ezjail}_rootdir\" | 63 | eval ezjail_root=\"\$jail_${ezjail}_rootdir\" |
64 | eval ezjail_image=\"\$jail_${ezjail}_image\" | 64 | eval ezjail_image=\"\$jail_${ezjail}_image\" |
65 | eval ezjail_crypt=\"\$jail_${ezjail}_cryptimage\" | 65 | eval ezjail_imagetype=\"\$jail_${ezjail}_imagetype\" |
66 | 66 | ||
67 | # Cannot auto mount crypto jails without interrupting boot process | 67 | # Cannot auto mount crypto jails without interrupting boot process |
68 | [ "${ezjail_fromrc}" = "YES" -a "${ezjail_crypt}" = "YES" -a "${action}" = "start" ] && continue | 68 | [ "${ezjail_fromrc}" = "YES" -a "${ezjail_imagetype}" = "crypto" -a "${action}" = "start" ] && continue |
69 | 69 | ||
70 | # Explicitely do only run crypto jails when *crypto is requested | 70 | # Explicitely do only run crypto jails when *crypto is requested |
71 | [ "${action%crypto}" != "${action}" -a "${ezjail_crypt}" != "YES" ] && continue | 71 | [ "${action%crypto}" != "${action}" -a "${ezjail_imagetype}" != "crypto" ] && continue |
72 | 72 | ||
73 | # Try to attach (crypto) devices | 73 | # Try to attach (crypto) devices |
74 | [ "${ezjail_image}" ] && attach_detach_pre | 74 | [ "${ezjail_image}" ] && attach_detach_pre |