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