parted/ovh
This commit is contained in:
parent
1f9ba3b19d
commit
ef87d4d410
1 changed files with 19 additions and 7 deletions
|
@ -152,17 +152,29 @@ rescue_ovh_wipe_vle2_0_init() {
|
||||||
printf "%s" "WIPE ${device} /?\\ OR CANCEL /!\\"
|
printf "%s" "WIPE ${device} /?\\ OR CANCEL /!\\"
|
||||||
read -r
|
read -r
|
||||||
#
|
#
|
||||||
parted "${device}" --script mktable gpt
|
parted "${device}" \
|
||||||
|
--script \
|
||||||
|
mktable gpt
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" mkpart "crypt" 4610 40960
|
parted "${device}" \
|
||||||
|
unit "${unit}" \
|
||||||
|
mkpart "crypt" 4610 40960
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" mkpart "boot" 514 4610
|
parted "${device}" \
|
||||||
|
unit "${unit}" \
|
||||||
|
mkpart "boot" 514 4610
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" mkpart "esp" 2 514
|
parted "${device}" \
|
||||||
parted "${device}" set 3 esp on
|
unit "${unit}" \
|
||||||
|
mkpart "esp" 2 514
|
||||||
|
parted "${device}" \
|
||||||
|
set 3 esp on
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" mkpart bios 1 2
|
parted "${device}" \
|
||||||
parted "${device}" set 4 bios_grub on
|
unit "${unit}" \
|
||||||
|
mkpart bios 1 2
|
||||||
|
parted "${device}" \
|
||||||
|
set 4 bios_grub on
|
||||||
# bios / wipe
|
# bios / wipe
|
||||||
dd if="/dev/zero" of="${device}4"
|
dd if="/dev/zero" of="${device}4"
|
||||||
# esp / wipe
|
# esp / wipe
|
||||||
|
|
Loading…
Reference in a new issue