Ensure to write the correct crypttab file…
And disable Luks by default.
This commit is contained in:
parent
637d61b44f
commit
2216fdba5d
|
@ -22,7 +22,7 @@ manage_btrfs=1
|
||||||
## If the script should create extra volume (eg. backup, virt, Proxmox,…)
|
## If the script should create extra volume (eg. backup, virt, Proxmox,…)
|
||||||
manage_extra_lv=0
|
manage_extra_lv=0
|
||||||
## If the script should cipher data with LUKS
|
## 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
|
## You need to set a new passphrase after the installation or at least change this one
|
||||||
luks_passphrase="generic key"
|
luks_passphrase="generic key"
|
||||||
luks_key_file="/tmp/luks.keyfile.temp"
|
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 {{{
|
||||||
luks_part_uuid=$(blkid | grep "${hdd}2.*TYPE=\"crypto_LUKS\"" | sed 's/.*UUID="\(.*\)" TYPE.*/\1/')
|
luks_part_uuid=$(blkid | grep "${hdd}2.*TYPE=\"crypto_LUKS\"" | sed 's/.*UUID="\(.*\)" TYPE.*/\1/')
|
||||||
### Ensure crypttab file contains the LUKS informations
|
### 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
|
### Regenerate initramfs
|
||||||
update-initramfs -k all -u
|
update-initramfs -k all -u
|
||||||
|
|
Loading…
Reference in New Issue