summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-10-07 16:10:00 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-10-07 16:10:00 -0400
commit1e27186f00f290e72ae5b2bcd8b4692ab68592d2 (patch)
tree2531eb25e46dfbe0bb322bc9280b252036bd335f
parentreturn without subshell, otherwise no env (diff)
downloaddotfiles-guix-1e27186f00f290e72ae5b2bcd8b4692ab68592d2.tar.gz
dotfiles-guix-1e27186f00f290e72ae5b2bcd8b4692ab68592d2.tar.bz2
dotfiles-guix-1e27186f00f290e72ae5b2bcd8b4692ab68592d2.zip
format btrfs, no YES on cryptsetup format needed
-rwxr-xr-xguix-strap/guix-crypt5
1 files changed, 4 insertions, 1 deletions
diff --git a/guix-strap/guix-crypt b/guix-strap/guix-crypt
index f9925f3..f2afbbd 100755
--- a/guix-strap/guix-crypt
+++ b/guix-strap/guix-crypt
@@ -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