diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-25 17:37:17 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-25 17:37:17 +0100 |
| commit | bf0173a3e7ec2f78917d3dd170935a52e971e0a6 (patch) | |
| tree | 352f8f833662e36dbe3d0d8cfe4b93c666368a97 | |
| parent | 4e010eb4c5f57ab76c4a5dfd0c0cbe341c858ada (diff) | |
set password using stdin
| -rwxr-xr-x | nais | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |