From 2216fdba5dbd53187da1ec3d04cb47a4ef92dcee Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 21 Oct 2020 09:51:12 +0200 Subject: [PATCH] =?UTF-8?q?Ensure=20to=20write=20the=20correct=20crypttab?= =?UTF-8?q?=20file=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And disable Luks by default. --- debian/chroot.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/chroot.install b/debian/chroot.install index d055533..8c0a915 100755 --- a/debian/chroot.install +++ b/debian/chroot.install @@ -22,7 +22,7 @@ manage_btrfs=1 ## If the script should create extra volume (eg. backup, virt, Proxmox,…) manage_extra_lv=0 ## If the script should cipher data with LUKS -manage_luks=0 +manage_luks=1 ## You need to set a new passphrase after the installation or at least change this one luks_passphrase="generic key" luks_key_file="/tmp/luks.keyfile.temp" @@ -222,7 +222,7 @@ mountpoint -q /target/run/udev || mount --bind -- /run/udev /target/run/u ## Luks {{{ luks_part_uuid=$(blkid | grep "${hdd}2.*TYPE=\"crypto_LUKS\"" | sed 's/.*UUID="\(.*\)" TYPE.*/\1/') ### Ensure crypttab file contains the LUKS informations -printf '%b\n' "${luks_pv_name} UUID=${luks_part_uuid} none luks,discard" >> /etc/crypttab +printf '%b\n' "${luks_pv_name} UUID=${luks_part_uuid} none luks,discard" >> /target/etc/crypttab ### Regenerate initramfs update-initramfs -k all -u