diff options
| -rwxr-xr-x | ezjail.sh | 12 |
1 files changed, 8 insertions, 4 deletions
| @@ -63,10 +63,14 @@ do_cmd() | |||
| 63 | eval ezjail_attachparams=\"\$jail_${ezjail}_attachparams\" | 63 | eval ezjail_attachparams=\"\$jail_${ezjail}_attachparams\" |
| 64 | 64 | ||
| 65 | # Cannot auto mount crypto jails without interrupting boot process | 65 | # Cannot auto mount crypto jails without interrupting boot process |
| 66 | [ "${ezjail_fromrc}" = "YES" -a "${ezjail_imagetype}" = "crypto" -a "${action}" = "start" ] && continue | 66 | if [ "${ezjail_fromrc}" = "YES" -a "${action}" = "start" ]; then |
| 67 | 67 | case "${ezjail_imagetype}" in crypto|eli|bde) continue;; esac | |
| 68 | # Explicitely do only run crypto jails when *crypto is requested | 68 | fi |
| 69 | [ "${action%crypto}" != "${action}" -a "${ezjail_imagetype}" != "crypto" ] && continue | 69 | |
| 70 | # Explicitely do only run crypto jails when *crypto is requested | ||
| 71 | if [ "${action%crypto}" != "${action}" ]; then | ||
| 72 | case "${ezjail_imagetype}" in crypto|eli|bde) ;; *) continue;; esac | ||
| 73 | fi | ||
| 70 | 74 | ||
| 71 | # Try to attach (crypto) devices | 75 | # Try to attach (crypto) devices |
| 72 | [ "${ezjail_image}" ] && attach_detach_pre | 76 | [ "${ezjail_image}" ] && attach_detach_pre |
