make_btrfs
This commit is contained in:
parent
844b2f21d3
commit
dc0540c4ca
3 changed files with 5 additions and 5 deletions
2
sh/fs.sh
2
sh/fs.sh
|
@ -1,4 +1,4 @@
|
||||||
fs_make_btrfs() {
|
sh_fs_make_btrfs() {
|
||||||
local device="${1}"
|
local device="${1}"
|
||||||
local label="${2}"
|
local label="${2}"
|
||||||
local uuid="${3}"
|
local uuid="${3}"
|
||||||
|
|
|
@ -67,7 +67,7 @@ rescue_wipe_0_init_hetzner_8_8() {
|
||||||
sh_fs_raid_create \
|
sh_fs_raid_create \
|
||||||
"boot" "00000000:00000000:00000000:00000002" ${members}
|
"boot" "00000000:00000000:00000000:00000002" ${members}
|
||||||
#
|
#
|
||||||
fs_make_btrfs "/dev/md/boot" "boot" \
|
sh_fs_make_btrfs "/dev/md/boot" "boot" \
|
||||||
"00000000-0000-0000-0000-00000000000b"
|
"00000000-0000-0000-0000-00000000000b"
|
||||||
# mount boot
|
# mount boot
|
||||||
mkdir --parents "/media/boot"
|
mkdir --parents "/media/boot"
|
||||||
|
@ -114,7 +114,7 @@ rescue_wipe_2_make_hetzner_8_8() {
|
||||||
# passphrase
|
# passphrase
|
||||||
unset passphrase
|
unset passphrase
|
||||||
# format crypt
|
# format crypt
|
||||||
fs_make_btrfs "/dev/mapper/crypt" "crypt" \
|
sh_fs_make_btrfs "/dev/mapper/crypt" "crypt" \
|
||||||
"00000000-0000-0000-0000-00000000000c"
|
"00000000-0000-0000-0000-00000000000c"
|
||||||
# mount crypt
|
# mount crypt
|
||||||
mkdir --parents "/media/crypt"
|
mkdir --parents "/media/crypt"
|
||||||
|
|
|
@ -27,7 +27,7 @@ rescue_wipe_0_init_ovh_vle2() {
|
||||||
# boot / wipe
|
# boot / wipe
|
||||||
sh_fs_wipe "${device}2" "1G" 1
|
sh_fs_wipe "${device}2" "1G" 1
|
||||||
# boot / format
|
# boot / format
|
||||||
fs_make_btrfs "${device}2" "boot" \
|
sh_fs_make_btrfs "${device}2" "boot" \
|
||||||
"00000000-0000-0000-0000-00000000000b"
|
"00000000-0000-0000-0000-00000000000b"
|
||||||
# boot / mount
|
# boot / mount
|
||||||
mkdir --parents "/media/boot"
|
mkdir --parents "/media/boot"
|
||||||
|
@ -59,7 +59,7 @@ rescue_wipe_2_make_ovh_vle2() {
|
||||||
# passphrase
|
# passphrase
|
||||||
unset passphrase
|
unset passphrase
|
||||||
# crypt / format
|
# crypt / format
|
||||||
fs_make_btrfs "/dev/mapper/crypt" "crypt" \
|
sh_fs_make_btrfs "/dev/mapper/crypt" "crypt" \
|
||||||
"00000000-0000-0000-0000-00000000000c"
|
"00000000-0000-0000-0000-00000000000c"
|
||||||
# crypt / mount
|
# crypt / mount
|
||||||
mkdir --parents "/media/crypt"
|
mkdir --parents "/media/crypt"
|
||||||
|
|
Loading…
Reference in a new issue