mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Fix intermitent loop device not available error when CRYPTROOT_ENABLE is enabled
This commit is contained in:
@@ -243,6 +243,7 @@ function prepare_partitions() {
|
||||
local rootdevice="${LOOP}p${rootpart}"
|
||||
|
||||
if [[ $CRYPTROOT_ENABLE == yes ]]; then
|
||||
check_loop_device "$rootdevice"
|
||||
display_alert "Encrypting root partition with LUKS..." "cryptsetup luksFormat $rootdevice" ""
|
||||
echo -n $CRYPTROOT_PASSPHRASE | cryptsetup luksFormat $CRYPTROOT_PARAMETERS $rootdevice -
|
||||
echo -n $CRYPTROOT_PASSPHRASE | cryptsetup luksOpen $rootdevice $ROOT_MAPPER -
|
||||
|
||||
Reference in New Issue
Block a user