Add luks support to mount

This commit is contained in:
Eric Renfro 2024-08-04 23:51:55 -04:00
parent f9516d9a77
commit 695953ed51
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -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