diff options
| -rwxr-xr-x | nais | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |