− lvm
This commit is contained in:
parent
02f2f5323c
commit
f571ad3307
1 changed files with 0 additions and 10 deletions
|
@ -284,14 +284,6 @@ function hetzner-rescue-wipe-8-8-2 {
|
|||
# open
|
||||
echo "${passphrase}" \
|
||||
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
|
||||
# pv
|
||||
pvcreate '/dev/mapper/crypt'
|
||||
# vg
|
||||
vgcreate 'crypt' '/dev/mapper/crypt'
|
||||
# lv swap
|
||||
lvcreate --name 'swap' --size '137438953472b' 'crypt'
|
||||
# lv data
|
||||
lvcreate --name 'data' --extents '100%FREE' 'crypt'
|
||||
# format swap
|
||||
mkswap \
|
||||
--label 'swap' \
|
||||
|
@ -302,8 +294,6 @@ function hetzner-rescue-wipe-8-8-2 {
|
|||
-L 'data' \
|
||||
-U '006234a0-eb29-a3a8-471d-bd5ec4bada55' \
|
||||
'/dev/mapper/crypt-data'
|
||||
# vg off
|
||||
vgchange --activate n 'crypt'
|
||||
# close
|
||||
cryptsetup luksClose 'crypt'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue