parted
This commit is contained in:
parent
9e9434e8e0
commit
c00ceaacaf
1 changed files with 3 additions and 7 deletions
|
@ -133,7 +133,6 @@ fi
|
||||||
function hetzner-rescue-wipe-8-8-0 {
|
function hetzner-rescue-wipe-8-8-0 {
|
||||||
local device
|
local device
|
||||||
local devices=(
|
local devices=(
|
||||||
'/dev/sdc'
|
|
||||||
'/dev/sda'
|
'/dev/sda'
|
||||||
'/dev/sdb'
|
'/dev/sdb'
|
||||||
)
|
)
|
||||||
|
@ -157,13 +156,13 @@ function hetzner-rescue-wipe-8-8-0 {
|
||||||
parted "${device}" --script mktable gpt
|
parted "${device}" --script mktable gpt
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" \
|
parted "${device}" unit "${unit}" \
|
||||||
mkpart "crypt-${number}" 22359 9537535
|
mkpart "crypt-${number}" 33282 7630885
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" \
|
parted "${device}" unit "${unit}" \
|
||||||
mkpart "boot-${number}" 513 22359
|
mkpart "boot-${number}" 514 33282
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" \
|
parted "${device}" unit "${unit}" \
|
||||||
mkpart "esp-${number}" 2 513
|
mkpart "esp-${number}" 2 514
|
||||||
parted "${device}" set 3 esp on
|
parted "${device}" set 3 esp on
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" \
|
parted "${device}" unit "${unit}" \
|
||||||
|
@ -171,9 +170,6 @@ function hetzner-rescue-wipe-8-8-0 {
|
||||||
parted "${device}" set 4 bios_grub on
|
parted "${device}" set 4 bios_grub on
|
||||||
done
|
done
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" \
|
|
||||||
mkpart 'extra' 9537535 11444223
|
|
||||||
#
|
|
||||||
number=0
|
number=0
|
||||||
for device in "${devices[@]}" ; do
|
for device in "${devices[@]}" ; do
|
||||||
((number++))
|
((number++))
|
||||||
|
|
Loading…
Reference in a new issue