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