This commit is contained in:
Marc Beninca 2023-10-03 09:58:47 +02:00
parent 969734c4cd
commit cf4d945350

View file

@ -254,6 +254,11 @@ function hetzner-rescue-wipe-12-10-10 {
lvcreate --name 'swap' --size '68719476736b' 'crypt'
# lv data
lvcreate --name 'data' --extents '100%FREE' 'crypt'
# format swap
mkswap \
--label 'swap' \
-U '06234a0e-b29a-3a84-71db-d5ec4bada557' \
'/dev/mapper/crypt-swap'
####
# vg off
vgchange --activate n 'crypt'
@ -262,8 +267,6 @@ function hetzner-rescue-wipe-12-10-10 {
}
function hetzner-rescue-wipe-12-10-10-extra {
# format swap
mkswap --label 'swap' '/dev/mapper/crypt-swap'
# format data
mkfs.ext4 -L 'data' '/dev/mapper/crypt-data'
}