crypt/mount
This commit is contained in:
parent
2b1610bbe6
commit
ac69623ed3
1 changed files with 6 additions and 1 deletions
|
@ -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' \
|
||||
|
|
Loading…
Reference in a new issue