aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnais4
1 files 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