From 89981022c490d1c6686670f9bcd6ca2e0b8fefe4 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 25 Mar 2023 15:32:14 +0100 Subject: fix cryptsetup typos --- nais | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nais b/nais index 4e5aacf..9ed4711 100755 --- a/nais +++ b/nais @@ -83,13 +83,13 @@ install_arch() { fi cryptsetup luksFormat --type luks2 "$root" "/key/.keys/${KEYFILE}" || exit - cryptsetup open --keyfile "/key/.keys/${KEYFILE}" "$root" root || exit + cryptsetup open --key-file "/key/.keys/${KEYFILE}" "$root" root || exit mkfs.btrfs -f /dev/mapper/root || exit mount "$root" /mnt/ || exit btrfs subvolume create /mnt/home || exit echo "$PASSWORD" | cryptsetup luksFormat --type luks1 "$boot" - || exit - echo "$PASSWORD" | cryptsetup open --keyfile - "$boot" boot || exit + echo "$PASSWORD" | cryptsetup open --key-file - "$boot" boot || exit mkfs.vfat /dev/mapper/boot || exit mount --mkdir "$boot" /mnt/boot || exit -- cgit v1.2.3-70-g09d2