Skip to content

Commit 5c4b0c5

Browse files
Save changes at: 1773426041
1 parent 65745e7 commit 5c4b0c5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

base.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ function partitioning() {
9494
umount --quiet --recursive /mnt/boot/efi 2>/dev/null || true
9595
umount --quiet --recursive /mnt 2>/dev/null || true
9696
swapoff --all 2>/dev/null || true
97+
cryptsetup close cryptroot 2>/dev/null || true
98+
udevadm settle
9799

98100
# Delete all partitions:
99101
wipefs --all --force --quiet "${VOLUMEN}"
@@ -131,9 +133,9 @@ function partitioning() {
131133

132134
# Encrypt disk
133135

134-
cryptsetup luksFormat --type luks2 --batch-mode "$ROOT" --key-file -
136+
cryptsetup luksFormat --type luks2 --batch-mode "$ROOT"
135137
cryptsetup open "$ROOT" cryptroot
136-
138+
udevadm settle
137139
mkfs.ext4 -L ROOT "/dev/mapper/cryptroot" &> /dev/null
138140

139141
# Mount: swap, root and boot:

0 commit comments

Comments
 (0)