diff --git a/bash/hetzner-rescue.sh b/bash/hetzner-rescue.sh index ad04071..da3514b 100644 --- a/bash/hetzner-rescue.sh +++ b/bash/hetzner-rescue.sh @@ -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' }