aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-03-25 17:37:17 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-03-25 17:37:17 +0100
commitbf0173a3e7ec2f78917d3dd170935a52e971e0a6 (patch)
tree352f8f833662e36dbe3d0d8cfe4b93c666368a97
parent4e010eb4c5f57ab76c4a5dfd0c0cbe341c858ada (diff)
set password using stdin
-rwxr-xr-xnais2
1 files changed, 1 insertions, 1 deletions
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