From bf0173a3e7ec2f78917d3dd170935a52e971e0a6 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 25 Mar 2023 17:37:17 +0100 Subject: set password using stdin --- nais | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nais b/nais index ebbc3e4..f5cd301 100755 --- a/nais +++ b/nais @@ -98,7 +98,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 - echo "$PASSWORD" | cryptsetup luksAddKey --key-file - "$boot" /mnt/etc/.bootkey || exit + printf "%s\nYES\n" "$PASSWORD" | cryptsetup luksAddKey "$boot" /mnt/etc/.bootkey || exit genfstab -U /mnt >> /mnt/etc/fstab || exit -- cgit v1.2.3-70-g09d2