format btrfs, no YES on cryptsetup format needed
This commit is contained in:
parent
59968fcefa
commit
1e27186f00
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue