number,mktable
This commit is contained in:
parent
4514296ee4
commit
7905892e59
1 changed files with 7 additions and 1 deletions
|
@ -136,13 +136,19 @@ function hetzner-rescue-wipe-12-10-10 {
|
||||||
'/dev/sda'
|
'/dev/sda'
|
||||||
'/dev/sdb'
|
'/dev/sdb'
|
||||||
)
|
)
|
||||||
|
local number=0
|
||||||
local unit='mib'
|
local unit='mib'
|
||||||
#
|
#
|
||||||
lsblk
|
lsblk
|
||||||
echo -n 'WIPE' "${device}" '/?\ OR CANCEL /!\'
|
echo -n 'WIPE' "${device}" '/?\ OR CANCEL /!\'
|
||||||
read
|
read
|
||||||
#
|
#
|
||||||
|
for device in "${devices[@]}" ; do
|
||||||
|
((number++))
|
||||||
|
echo ; echo "#${number}: ${device}"
|
||||||
|
#
|
||||||
parted "${device}" --script mktable gpt
|
parted "${device}" --script mktable gpt
|
||||||
|
done
|
||||||
#
|
#
|
||||||
parted "${device}" unit "${unit}" mkpart 'crypt' 65795 1907729
|
parted "${device}" unit "${unit}" mkpart 'crypt' 65795 1907729
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue