swap
This commit is contained in:
parent
969734c4cd
commit
cf4d945350
1 changed files with 5 additions and 2 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue