1#!/bin/sh 2 3FSTYPE=$2 4MOUNTFROM="/dev/${3#/dev/}" 5VOLUME=$4 6OPTIONS=$5 7 8cryptsetup isLuks $MOUNTFROM || return 1 9cryptsetup $OPTIONS luksOpen $MOUNTFROM $VOLUME || return 2 10mount -o ro -t $FSTYPE /dev/mapper/$VOLUME $NEW_ROOT || return 3 11