This commit is contained in:
Marc Beninca 2024-11-20 09:34:45 +01:00
parent c641c95c0d
commit ce6ca845bc
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
4 changed files with 10 additions and 10 deletions

View file

@ -72,7 +72,7 @@ fs_raid_create() {
fi fi
} }
fs_wipe() { sh_fs_wipe() {
local device="${1}" local device="${1}"
local buffer="${2}" local buffer="${2}"
local count="${3}" local count="${3}"

View file

@ -84,7 +84,7 @@ rescue_upload() {
} }
rescue_wipe_1_zero() { rescue_wipe_1_zero() {
fs_wipe "/dev/mapper/crypt" "512M" sh_fs_wipe "/dev/mapper/crypt" "512M"
} }
rescue_wipe_3_close() { rescue_wipe_3_close() {

View file

@ -34,7 +34,7 @@ rescue_wipe_0_init_hetzner_8_8() {
echo echo
echo "#${number}: ${device}4" echo "#${number}: ${device}4"
# wipe bios # wipe bios
fs_wipe "${device}4" sh_fs_wipe "${device}4"
done done
# #
number=0 number=0
@ -43,7 +43,7 @@ rescue_wipe_0_init_hetzner_8_8() {
echo echo
echo "#${number}: ${device}3" echo "#${number}: ${device}3"
# format esp # format esp
fs_wipe "${device}3" "1M" sh_fs_wipe "${device}3" "1M"
fs_make_fat "${device}3" "esp-${number}" "0000000${number}" fs_make_fat "${device}3" "esp-${number}" "0000000${number}"
# mount esp # mount esp
mkdir --parents "/media/esp/${number}" mkdir --parents "/media/esp/${number}"
@ -56,7 +56,7 @@ rescue_wipe_0_init_hetzner_8_8() {
echo echo
echo "#${number}: ${device}2" echo "#${number}: ${device}2"
# wipe boot # wipe boot
fs_wipe "${device}2" "1G" 1 sh_fs_wipe "${device}2" "1G" 1
done done
# #
members="" members=""
@ -81,7 +81,7 @@ rescue_wipe_0_init_hetzner_8_8() {
echo echo
echo "#${number}: ${device}1" echo "#${number}: ${device}1"
# wipe crypt head # wipe crypt head
fs_wipe "${device}1" "1G" 1 sh_fs_wipe "${device}1" "1G" 1
done done
# #
members="" members=""

View file

@ -16,16 +16,16 @@ rescue_wipe_0_init_ovh_vle2() {
mkpart bios 1 2 \ mkpart bios 1 2 \
set 4 bios_grub on set 4 bios_grub on
# bios / wipe # bios / wipe
fs_wipe "${device}4" sh_fs_wipe "${device}4"
# esp / wipe # esp / wipe
fs_wipe "${device}3" "1M" sh_fs_wipe "${device}3" "1M"
# esp / format # esp / format
fs_make_fat "${device}3" "esp" "00000001" fs_make_fat "${device}3" "esp" "00000001"
# esp / mount # esp / mount
mkdir --parents "/media/esp" mkdir --parents "/media/esp"
mount "${device}3" "/media/esp" mount "${device}3" "/media/esp"
# boot / wipe # boot / wipe
fs_wipe "${device}2" "1G" 1 sh_fs_wipe "${device}2" "1G" 1
# boot / format # boot / format
fs_make_btrfs "${device}2" "boot" \ fs_make_btrfs "${device}2" "boot" \
"00000000-0000-0000-0000-00000000000b" "00000000-0000-0000-0000-00000000000b"
@ -34,7 +34,7 @@ rescue_wipe_0_init_ovh_vle2() {
mount --options "autodefrag,compress-force=zstd" \ mount --options "autodefrag,compress-force=zstd" \
"${device}2" "/media/boot" "${device}2" "/media/boot"
# crypt / wipe # crypt / wipe
fs_wipe "${device}1" "1G" 1 sh_fs_wipe "${device}1" "1G" 1
# crypt / encrypt # crypt / encrypt
sh_fs_luks_format "${passphrase}" "${device}1" sh_fs_luks_format "${passphrase}" "${device}1"
# crypt / open # crypt / open