swap
This commit is contained in:
parent
f571ad3307
commit
5ab4a0054a
1 changed files with 5 additions and 5 deletions
|
@ -284,16 +284,16 @@ function hetzner-rescue-wipe-8-8-2 {
|
||||||
# open
|
# open
|
||||||
echo "${passphrase}" \
|
echo "${passphrase}" \
|
||||||
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
|
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
|
||||||
# format swap
|
|
||||||
mkswap \
|
|
||||||
--label 'swap' \
|
|
||||||
-U '06234a0e-b29a-3a84-71db-d5ec4bada557' \
|
|
||||||
'/dev/mapper/crypt-swap'
|
|
||||||
# format data
|
# format data
|
||||||
mkfs.ext4 \
|
mkfs.ext4 \
|
||||||
-L 'data' \
|
-L 'data' \
|
||||||
-U '006234a0-eb29-a3a8-471d-bd5ec4bada55' \
|
-U '006234a0-eb29-a3a8-471d-bd5ec4bada55' \
|
||||||
'/dev/mapper/crypt-data'
|
'/dev/mapper/crypt-data'
|
||||||
|
# format swap
|
||||||
|
mkswap \
|
||||||
|
--label 'swap' \
|
||||||
|
-U '06234a0e-b29a-3a84-71db-d5ec4bada557' \
|
||||||
|
'/dev/mapper/crypt-swap'
|
||||||
# close
|
# close
|
||||||
cryptsetup luksClose 'crypt'
|
cryptsetup luksClose 'crypt'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue