Add luks support to mount
This commit is contained in:
parent
f9516d9a77
commit
695953ed51
1 changed files with 3 additions and 0 deletions
|
@ -174,6 +174,9 @@ function prepare_target() {
|
|||
|
||||
if [[ "$ENCRYPTION" ]]; then
|
||||
rootmount="/dev/mapper/luksvol"
|
||||
if [[ ! -b "$rootmount" ]]; then
|
||||
${cmd} cryptsetup luksOpen "$RootPart" luksvol
|
||||
fi
|
||||
else
|
||||
rootmount="$RootPart"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue