crypt/mkswapfile
This commit is contained in:
parent
ac69623ed3
commit
f8f5bb623d
1 changed files with 5 additions and 5 deletions
|
@ -295,11 +295,11 @@ function hetzner-rescue-wipe-8-8-2 {
|
|||
mount \
|
||||
--options 'autodefrag,compress=zstd' \
|
||||
'/dev/mapper/crypt' '/media/crypt'
|
||||
# format swap
|
||||
mkswap \
|
||||
--label 'swap' \
|
||||
-U '06234a0e-b29a-3a84-71db-d5ec4bada557' \
|
||||
'/dev/mapper/crypt-swap'
|
||||
# make swap file
|
||||
btrfs filesystem mkswapfile \
|
||||
--size '64g' \
|
||||
--uuid '00000000-0000-0000-0000-000000000005' \
|
||||
'/media/crypt/swap'
|
||||
# close
|
||||
cryptsetup luksClose 'crypt'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue