We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4b0c5 commit b3ea7eaCopy full SHA for b3ea7ea
1 file changed
base.sh
@@ -132,9 +132,8 @@ function partitioning() {
132
# mkfs.ext4 -L ROOT "${ROOT}" &> /dev/null
133
134
# Encrypt disk
135
-
136
- cryptsetup luksFormat --type luks2 --batch-mode "$ROOT"
137
- cryptsetup open "$ROOT" cryptroot
+ printf "%s" "$PASSWORD" | cryptsetup luksFormat --type luks2 --batch-mode --key-file - "$ROOT"
+ printf "%s" "$PASSWORD" | cryptsetup open --key-file - "$ROOT" cryptroot
138
udevadm settle
139
mkfs.ext4 -L ROOT "/dev/mapper/cryptroot" &> /dev/null
140
0 commit comments