This commit is contained in:
Marc Beninca 2024-11-11 16:38:48 +01:00
parent 566189cc80
commit 63af101db9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -181,10 +181,10 @@ ovh_rescue_wipe_vle2_0_init() {
dd status="progress" if="/dev/zero" of="${device}2" bs="1G" count=1
# boot / format
mkfs.btrfs --force \
--checksum "sha256" \
--label "boot" \
--uuid "00000000-0000-0000-0000-00000000000b" \
"${device}2"
--checksum "sha256" \
--label "boot" \
--uuid "00000000-0000-0000-0000-00000000000b" \
"${device}2"
# boot / mount
mkdir --parents "/media/boot"
mount --options "autodefrag,compress-force=zstd" \
@ -241,19 +241,19 @@ ovh_rescue_wipe_vle2_2_make() {
cryptsetup luksOpen "${device}1" "crypt"
# crypt / format
mkfs.btrfs --force \
--checksum "sha256" \
--label "crypt" \
--uuid "00000000-0000-0000-0000-00000000000c" \
"${device}1"
--checksum "sha256" \
--label "crypt" \
--uuid "00000000-0000-0000-0000-00000000000c" \
"${device}1"
# crypt / mount
mkdir --parents "/media/crypt"
mount --options "autodefrag,compress-force=zstd" \
"${device}1" "/media/crypt"
# crypt / swap
btrfs filesystem mkswapfile \
--size "4g" \
--uuid "00000000-0000-0000-0000-000000000005" \
"/media/crypt/swap"
--size "4g" \
--uuid "00000000-0000-0000-0000-000000000005" \
"/media/crypt/swap"
}
ovh_rescue_wipe_vle2_3_close() {