From ac69623ed3a916b14b70bf31d8048ac7d7d55404 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 28 Dec 2023 12:44:00 +0100 Subject: [PATCH] crypt/mount --- bash/hetzner-rescue.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bash/hetzner-rescue.sh b/bash/hetzner-rescue.sh index 903b0d9..52e9e1f 100644 --- a/bash/hetzner-rescue.sh +++ b/bash/hetzner-rescue.sh @@ -284,12 +284,17 @@ function hetzner-rescue-wipe-8-8-2 { # open echo "${passphrase}" \ | cryptsetup luksOpen '/dev/md/crypt' 'crypt' - # format data + # format crypt mkfs.btrfs --force \ --label 'crypt' \ --uuid '00000000-0000-0000-0000-00000000000c' \ --checksum 'sha256' \ '/dev/mapper/crypt' + # mount crypt + mkdir --parents '/media/crypt' + mount \ + --options 'autodefrag,compress=zstd' \ + '/dev/mapper/crypt' '/media/crypt' # format swap mkswap \ --label 'swap' \