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"
|
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
|
||||||
|
|
Loading…
Reference in a new issue