This commit is contained in:
Marc Beninca 2023-10-03 09:57:39 +02:00
parent d969810396
commit 969734c4cd

View file

@ -250,6 +250,10 @@ function hetzner-rescue-wipe-12-10-10 {
pvcreate '/dev/mapper/crypt'
# vg
vgcreate 'crypt' '/dev/mapper/crypt'
# lv swap
lvcreate --name 'swap' --size '68719476736b' 'crypt'
# lv data
lvcreate --name 'data' --extents '100%FREE' 'crypt'
####
# vg off
vgchange --activate n 'crypt'
@ -258,10 +262,6 @@ function hetzner-rescue-wipe-12-10-10 {
}
function hetzner-rescue-wipe-12-10-10-extra {
# lv swap
lvcreate --name 'swap' --size '68719476736b' 'crypt'
# lv data
lvcreate --name 'data' --extents '100%FREE' 'crypt'
# format swap
mkswap --label 'swap' '/dev/mapper/crypt-swap'
# format data