3 if [ ! -x /sbin
/cryptsetup
]; then
12 # Make sure that MOUNTFROM starts with /dev/
13 substr
="${MOUNTFROM##/dev/}"
14 if [ "$substr" = "$MOUNTFROM" ]; then
15 MOUNTFROM
="/dev/$MOUNTFROM"
18 # Check if the volume is really a luks volume
19 /sbin
/cryptsetup isLuks
$MOUNTFROM
20 if [ "$?" -ne "0" ]; then
25 /sbin
/cryptsetup
$OPTIONS luksOpen
$MOUNTFROM $VOLUME
26 if [ "$?" -ne "0" ]; then
30 # Mount, as is expected, onto /new_root
31 mount
-o ro
-t $FSTYPE /dev
/mapper
/$VOLUME /new_root
32 if [ "$?" -ne "0" ]; then