From 695953ed5130bf9d6a04383722b2e14e03653707 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sun, 4 Aug 2024 23:51:55 -0400 Subject: [PATCH] Add luks support to mount --- gentoo-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gentoo-install.sh b/gentoo-install.sh index 1fb37c7..7e13333 100755 --- a/gentoo-install.sh +++ b/gentoo-install.sh @@ -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