make_fat
This commit is contained in:
parent
1dfebbc35a
commit
beb4695b29
3 changed files with 3 additions and 3 deletions
2
sh/fs.sh
2
sh/fs.sh
|
@ -36,7 +36,7 @@ fs_make_btrfs_swap() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
fs_make_fat() {
|
sh_fs_make_fat() {
|
||||||
local device="${1}"
|
local device="${1}"
|
||||||
local name="${2}"
|
local name="${2}"
|
||||||
local volid="${3}"
|
local volid="${3}"
|
||||||
|
|
|
@ -44,7 +44,7 @@ rescue_wipe_0_init_hetzner_8_8() {
|
||||||
echo "#${number}: ${device}3"
|
echo "#${number}: ${device}3"
|
||||||
# format esp
|
# format esp
|
||||||
sh_fs_wipe "${device}3" "1M"
|
sh_fs_wipe "${device}3" "1M"
|
||||||
fs_make_fat "${device}3" "esp-${number}" "0000000${number}"
|
sh_fs_make_fat "${device}3" "esp-${number}" "0000000${number}"
|
||||||
# mount esp
|
# mount esp
|
||||||
mkdir --parents "/media/esp/${number}"
|
mkdir --parents "/media/esp/${number}"
|
||||||
mount "${device}3" "/media/esp/${number}"
|
mount "${device}3" "/media/esp/${number}"
|
||||||
|
|
|
@ -20,7 +20,7 @@ rescue_wipe_0_init_ovh_vle2() {
|
||||||
# esp / wipe
|
# esp / wipe
|
||||||
sh_fs_wipe "${device}3" "1M"
|
sh_fs_wipe "${device}3" "1M"
|
||||||
# esp / format
|
# esp / format
|
||||||
fs_make_fat "${device}3" "esp" "00000001"
|
sh_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"
|
||||||
|
|
Loading…
Reference in a new issue