warn_wipe
This commit is contained in:
parent
cafe6ab80b
commit
213f6ae1f1
3 changed files with 11 additions and 7 deletions
|
@ -10,10 +10,8 @@ rescue_wipe_0_init_hetzner_8_8() {
|
||||||
local passphrase
|
local passphrase
|
||||||
# read passphrase
|
# read passphrase
|
||||||
passphrase="$(read_passphrase)"
|
passphrase="$(read_passphrase)"
|
||||||
#
|
# warn
|
||||||
lsblk
|
warn_wipe "${@}"
|
||||||
printf "%s" "WIPE ${*} /?\\ OR CANCEL /!\\"
|
|
||||||
read -r
|
|
||||||
#
|
#
|
||||||
number=0
|
number=0
|
||||||
for device in "${@}"; do
|
for device in "${@}"; do
|
||||||
|
|
|
@ -4,9 +4,7 @@ rescue_wipe_0_init_ovh_vle2() {
|
||||||
# read passphrase
|
# read passphrase
|
||||||
passphrase="$(read_passphrase)"
|
passphrase="$(read_passphrase)"
|
||||||
# warn
|
# warn
|
||||||
lsblk
|
warn_wipe "${device}"
|
||||||
printf "%s" "WIPE ${device} /?\\ OR CANCEL /!\\"
|
|
||||||
read -r
|
|
||||||
#
|
#
|
||||||
parted --script "${device}" \
|
parted --script "${device}" \
|
||||||
mktable gpt \
|
mktable gpt \
|
||||||
|
|
|
@ -21,3 +21,11 @@ read_secret() {
|
||||||
echo "${secret}"
|
echo "${secret}"
|
||||||
unset secret
|
unset secret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
warn_wipe() {
|
||||||
|
local tmp
|
||||||
|
lsblk --noempty
|
||||||
|
printf "%s" "WIPE ${*} /?\\ OR CANCEL /!\\"
|
||||||
|
read -r tmp
|
||||||
|
log_trace "${tmp}"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue