aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-03-25 15:32:14 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-03-25 15:32:14 +0100
commit89981022c490d1c6686670f9bcd6ca2e0b8fefe4 (patch)
tree24cb233db710d13c02fbd7ace21c671bc593e4eb
parent2cbe614a535b5268b6d20b2f5dce300e09a7ac6a (diff)
fix cryptsetup typos
-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