Some nesting errors occured... investigating
This commit is contained in:
parent
f5c5e02160
commit
82ff9ad072
50
ezjail-admin
50
ezjail-admin
@ -376,34 +376,34 @@ create)
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
case ${ezjail_imagetype} in
|
case ${ezjail_imagetype} in
|
||||||
bde|eli)
|
bde|eli)
|
||||||
# parse imageparams, generate attachparams
|
# parse imageparams, generate attachparams
|
||||||
ezjail_attachblocking="YES"
|
ezjail_attachblocking="YES"
|
||||||
if [ "${ezjail_imageparams}" ]; then
|
if [ "${ezjail_imageparams}" ]; then
|
||||||
ezjail_attachparams=`echo $0 _parse_g${ezjail_imagetype}_attach_args_ ${ezjail_imageparams} | /bin/sh`
|
ezjail_attachparams=`echo $0 _parse_g${ezjail_imagetype}_attach_args_ ${ezjail_imageparams} | /bin/sh`
|
||||||
[ 5 -eq $? ] && exerr "processing of ezjail_imageparams failed"
|
[ 5 -eq $? ] && exerr "processing of ezjail_imageparams failed"
|
||||||
[ 3 -eq $? ] && unset ezjail_attachblocking
|
[ 3 -eq $? ] && unset ezjail_attachblocking
|
||||||
fi
|
fi
|
||||||
case ${ezjail_imagetype} in
|
case ${ezjail_imagetype} in
|
||||||
bde) init_cmd="gbde init /dev/${ezjail_imagedevice} ${ezjail_imageparams}"
|
bde) init_cmd="gbde init /dev/${ezjail_imagedevice} ${ezjail_imageparams}"
|
||||||
attach_cmd="gbde attach /dev/${ezjail_imagedevice} ${ezjail_attachparams}";;
|
attach_cmd="gbde attach /dev/${ezjail_imagedevice} ${ezjail_attachparams}";;
|
||||||
eli) init_cmd="geli init ${ezjail_imageparams} /dev/${ezjail_imagedevice}"
|
eli) init_cmd="geli init ${ezjail_imageparams} /dev/${ezjail_imagedevice}"
|
||||||
attach_cmd="geli attach ${ezjail_attachparams} /dev/${ezjail_imagedevice}";;
|
attach_cmd="geli attach ${ezjail_attachparams} /dev/${ezjail_imagedevice}";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -z "${ezjail_exists} ]; then
|
if [ -z "${ezjail_exists} ]; then
|
||||||
[ "${ezjail_attachblocking}" ] && echo "Initialising crypto device. You will be asked to enter a new passphrase twice... "
|
[ "${ezjail_attachblocking}" ] && echo "Initialising crypto device. You will be asked to enter a new passphrase twice... "
|
||||||
( echo ${init_cmd} | /bin/sh ) || detach_images || exerr "Error: Could not initialise crypto image."
|
( echo ${init_cmd} | /bin/sh ) || detach_images || exerr "Error: Could not initialise crypto image."
|
||||||
|
|
||||||
[ "${ezjail_attachblocking}" ] && echo "Attaching crypto device. You will be asked to enter the new passphrase... "
|
[ "${ezjail_attachblocking}" ] && echo "Attaching crypto device. You will be asked to enter the new passphrase... "
|
||||||
( echo ${attach_cmd} | /bin/sh ) || detach_images || exerr "Error: Could not attach crypto image."
|
( echo ${attach_cmd} | /bin/sh ) || detach_images || exerr "Error: Could not attach crypto image."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ezjail_device="${ezjail_imagedevice}.${ezjail_imagetype}"
|
ezjail_device="${ezjail_imagedevice}.${ezjail_imagetype}"
|
||||||
;;
|
;;
|
||||||
simple)
|
simple)
|
||||||
ezjail_device=${ezjail_imagedevice}
|
ezjail_device=${ezjail_imagedevice}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -z "${ezjail_exists} ]; then
|
if [ -z "${ezjail_exists} ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user