Skip to content

Commit

Permalink
fix: don't override crypttab to allow decryption of mulitple partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
brdanin committed Feb 5, 2024
1 parent 48327d9 commit ccfdd15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions builder/image.d/make_repart_partition
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ccfdd15

Please sign in to comment.