From 0590a080e80845f63c90c4e9c13b33a53e6904e5 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 25 Mar 2023 17:58:37 +0100 Subject: remove --key-file from encryption with password --- nais | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nais b/nais index 2c6854c..0ee12cc 100755 --- a/nais +++ b/nais @@ -86,8 +86,8 @@ install_arch() { uuid=$(lsblk --raw -o PATH,UUID | grep "$root" | awk '{ print $2 }') - echo "$PASSWORD" | cryptsetup luksFormat --type luks1 "$boot" - || exit - echo "$PASSWORD" | cryptsetup open --key-file - "$boot" boot || exit + printf "%s" "$PASSWORD" | cryptsetup luksFormat --type luks1 "$boot" || exit + printf "%s" "$PASSWORD" | cryptsetup open "$boot" boot || exit mkfs.vfat /dev/mapper/boot || exit mount --mkdir /dev/mapper/boot /mnt/boot || exit @@ -96,7 +96,7 @@ install_arch() { pacstrap -K /mnt base linux linux-firmware neovim neomutt wayland wayland-protocols wlroots xorg-xwayland git base-devel networkmanager btrfs-progs sudo grub efibootmgr dd if=/dev/random of=/mnt/etc/.bootkey bs=1024 count=4 - printf "%s\n" "$PASSWORD" | cryptsetup luksAddKey "$boot" /mnt/etc/.bootkey || exit + printf "%s" "$PASSWORD" | cryptsetup luksAddKey "$boot" /mnt/etc/.bootkey || exit genfstab -U /mnt >> /mnt/etc/fstab || exit -- cgit v1.2.3-70-g09d2