format btrfs, no YES on cryptsetup format needed

This commit is contained in:
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"
cryptsetup luksFormat --type luks1 "$CRYPT_PARTITION" <<EOF
YES
$PASSWORD
$PASSWORD_CONFIRM
EOF
@ -50,6 +49,10 @@ cryptsetup open "$CRYPT_PARTITION" cryptroot <<EOF
$PASSWORD
EOF
EVENT "Setting up cryptroot btrfs"
mkfs.btrfs "/dev/mapper/cryptroot"
EVENT "Mounting cryptroot"
mount /dev/mapper/cryptroot /mnt