pv,vg
This commit is contained in:
parent
d58afc8226
commit
d969810396
1 changed files with 6 additions and 6 deletions
|
@ -246,16 +246,18 @@ function hetzner-rescue-wipe-12-10-10 {
|
|||
# open
|
||||
echo "${passphrase}" \
|
||||
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
|
||||
# pv
|
||||
pvcreate '/dev/mapper/crypt'
|
||||
# vg
|
||||
vgcreate 'crypt' '/dev/mapper/crypt'
|
||||
####
|
||||
# vg off
|
||||
vgchange --activate n 'crypt'
|
||||
# close
|
||||
cryptsetup luksClose 'crypt'
|
||||
}
|
||||
|
||||
function hetzner-rescue-wipe-12-10-10-extra {
|
||||
# pv
|
||||
pvcreate '/dev/mapper/crypt'
|
||||
# vg
|
||||
vgcreate 'crypt' '/dev/mapper/crypt'
|
||||
# lv swap
|
||||
lvcreate --name 'swap' --size '68719476736b' 'crypt'
|
||||
# lv data
|
||||
|
@ -264,6 +266,4 @@ function hetzner-rescue-wipe-12-10-10-extra {
|
|||
mkswap --label 'swap' '/dev/mapper/crypt-swap'
|
||||
# format data
|
||||
mkfs.ext4 -L 'data' '/dev/mapper/crypt-data'
|
||||
# vg off
|
||||
vgchange --activate n 'crypt'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue