From ccfdd15822d068437cf859f6b4a29e6ce45306ea Mon Sep 17 00:00:00 2001 From: I569190 Date: Mon, 5 Feb 2024 14:11:46 +0100 Subject: [PATCH] fix: don't override crypttab to allow decryption of mulitple partitions --- builder/image.d/make_repart_partition | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/builder/image.d/make_repart_partition b/builder/image.d/make_repart_partition index 456a041..b95a381 100755 --- a/builder/image.d/make_repart_partition +++ b/builder/image.d/make_repart_partition @@ -243,9 +243,7 @@ else EOF if [[ "$tpm2" = "tpm2" ]]; then - cat > "$target/etc/crypttab" <<-EOF - luks-$repart_uuid $dev_path - EOF + echo "luks-$repart_uuid $dev_path" >> "$target/etc/crypttab" dev_path="/dev/mapper/luks-$repart_uuid" systemd_cryptsetup_dependency="systemd-cryptsetup@luks\x2d$(systemd-escape "${repart_uuid#/}").service"