From d969810396fa4f5f79b5d9371c974e9f68e5bb95 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 3 Oct 2023 09:55:08 +0200 Subject: [PATCH] pv,vg --- bash/hetzner-rescue.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bash/hetzner-rescue.sh b/bash/hetzner-rescue.sh index 929c262..c2431ff 100644 --- a/bash/hetzner-rescue.sh +++ b/bash/hetzner-rescue.sh @@ -246,16 +246,18 @@ function hetzner-rescue-wipe-12-10-10 { # open echo "${passphrase}" \ | cryptsetup luksOpen '/dev/md/crypt' 'crypt' + # pv + pvcreate '/dev/mapper/crypt' + # vg + vgcreate 'crypt' '/dev/mapper/crypt' #### + # vg off + vgchange --activate n 'crypt' # close cryptsetup luksClose 'crypt' } function hetzner-rescue-wipe-12-10-10-extra { - # pv - pvcreate '/dev/mapper/crypt' - # vg - vgcreate 'crypt' '/dev/mapper/crypt' # lv swap lvcreate --name 'swap' --size '68719476736b' 'crypt' # lv data @@ -264,6 +266,4 @@ function hetzner-rescue-wipe-12-10-10-extra { mkswap --label 'swap' '/dev/mapper/crypt-swap' # format data mkfs.ext4 -L 'data' '/dev/mapper/crypt-data' - # vg off - vgchange --activate n 'crypt' }