From f96dbd4def35d33143bc45c106b0516b6e4dec11 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 26 Apr 2006 09:31:37 +0000 Subject: Introducing a more generic crypto image strategy --- ezjail.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ezjail.sh') diff --git a/ezjail.sh b/ezjail.sh index 1ff1b77..49d915f 100755 --- a/ezjail.sh +++ b/ezjail.sh @@ -92,13 +92,17 @@ attach_detach_pre () # If this is a crypto jail, try to mount it, remind user, which jail # this is. In this case, the device to mount is - if [ "${ezjail_imagetype}" = "crypto" ]; then + case ${ezjail_imagetype} in + crypto|bde) echo "Attaching gbde device for image jail ${ezjail}..." gbde attach /dev/${ezjail_device} # Device to mount is not md anymore ezjail_device=${ezjail_device}.bde - fi + ;; + eli) + ;; + esac # relink image device rm -f ${ezjail_root}.device @@ -122,6 +126,7 @@ attach_detach_post () { # In case of a stop, unmount image devices after stopping jails for md in ${ezjail_mds}; do [ -e ${md}.bde ] && gbde detach ${md} + [ -e ${md}.eli ] && geli detach ${md} mdconfig -d -u ${md#/dev/} done } -- cgit v1.2.3