This commit is contained in:
Marc Beninca 2024-11-12 22:47:18 +01:00
parent fdffd7fb08
commit 7611ee6103
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 8 additions and 20 deletions

View file

@ -75,11 +75,8 @@ rescue_wipe_0_init_hetzner_8_8() {
--uuid "00000000:00000000:00000000:00000002" \ --uuid "00000000:00000000:00000000:00000002" \
"${members[@]}" "${members[@]}"
# #
mkfs.btrfs --force \ fs_make_btrfs "/dev/md/boot" "boot" \
--checksum "sha256" \ "00000000-0000-0000-0000-00000000000b"
--label "boot" \
--uuid "00000000-0000-0000-0000-00000000000b" \
"/dev/md/boot"
# mount boot # mount boot
mkdir --parents "/media/boot" mkdir --parents "/media/boot"
mount \ mount \
@ -154,11 +151,8 @@ rescue_wipe_2_make_hetzner_8_8() {
# passphrase # passphrase
unset passphrase unset passphrase
# format crypt # format crypt
mkfs.btrfs --force \ fs_make_btrfs "/dev/mapper/crypt" "crypt" \
--checksum "sha256" \ "00000000-0000-0000-0000-00000000000c"
--label "crypt" \
--uuid "00000000-0000-0000-0000-00000000000c" \
"/dev/mapper/crypt"
# mount crypt # mount crypt
mkdir --parents "/media/crypt" mkdir --parents "/media/crypt"
mount \ mount \

View file

@ -29,11 +29,8 @@ rescue_wipe_0_init_ovh_vle2() {
# boot / wipe # boot / wipe
fs_wipe "${device}2" "1G" 1 fs_wipe "${device}2" "1G" 1
# boot / format # boot / format
mkfs.btrfs --force \ fs_make_btrfs "${device}2" "boot" \
--checksum "sha256" \ "00000000-0000-0000-0000-00000000000b"
--label "boot" \
--uuid "00000000-0000-0000-0000-00000000000b" \
"${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" \
@ -88,11 +85,8 @@ rescue_wipe_2_make_ovh_vle2() {
# passphrase # passphrase
unset passphrase unset passphrase
# crypt / format # crypt / format
mkfs.btrfs --force \ fs_make_btrfs "/dev/mapper/crypt" "crypt" \
--checksum "sha256" \ "00000000-0000-0000-0000-00000000000c"
--label "crypt" \
--uuid "00000000-0000-0000-0000-00000000000c" \
"/dev/mapper/crypt"
# crypt / mount # crypt / mount
mkdir --parents "/media/crypt" mkdir --parents "/media/crypt"
mount --options "autodefrag,compress-force=zstd" \ mount --options "autodefrag,compress-force=zstd" \