format btrfs, no YES on cryptsetup format needed

This commit is contained in:
Freya Murphy 2023-10-07 16:10:00 -04:00
parent 59968fcefa
commit 1e27186f00
No known key found for this signature in database
GPG key ID: 988032A5638EE799

View file

@ -39,7 +39,6 @@ get_password
EVENT "Setting up luks" EVENT "Setting up luks"
cryptsetup luksFormat --type luks1 "$CRYPT_PARTITION" <<EOF cryptsetup luksFormat --type luks1 "$CRYPT_PARTITION" <<EOF
YES
$PASSWORD $PASSWORD
$PASSWORD_CONFIRM $PASSWORD_CONFIRM
EOF EOF
@ -50,6 +49,10 @@ cryptsetup open "$CRYPT_PARTITION" cryptroot <<EOF
$PASSWORD $PASSWORD
EOF EOF
EVENT "Setting up cryptroot btrfs"
mkfs.btrfs "/dev/mapper/cryptroot"
EVENT "Mounting cryptroot" EVENT "Mounting cryptroot"
mount /dev/mapper/cryptroot /mnt mount /dev/mapper/cryptroot /mnt