read_passphrase
This commit is contained in:
parent
6b45b885c7
commit
510ca5a5b3
3 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@ rescue_wipe_0_init_hetzner_8_8() {
|
||||||
local number
|
local number
|
||||||
local passphrase
|
local passphrase
|
||||||
# read passphrase
|
# read passphrase
|
||||||
passphrase="$(read_passphrase)"
|
passphrase="$(sh_read_passphrase)"
|
||||||
# warn
|
# warn
|
||||||
sh_warn_wipe "${@}"
|
sh_warn_wipe "${@}"
|
||||||
#
|
#
|
||||||
|
@ -105,7 +105,7 @@ rescue_wipe_2_make_hetzner_8_8() {
|
||||||
# close
|
# close
|
||||||
cryptsetup luksClose "crypt"
|
cryptsetup luksClose "crypt"
|
||||||
# read passphrase
|
# read passphrase
|
||||||
passphrase="$(read_passphrase)"
|
passphrase="$(sh_read_passphrase)"
|
||||||
# encrypt
|
# encrypt
|
||||||
sh_fs_luks_format "${passphrase}" "/dev/md/crypt"
|
sh_fs_luks_format "${passphrase}" "/dev/md/crypt"
|
||||||
# open
|
# open
|
||||||
|
|
|
@ -2,7 +2,7 @@ rescue_wipe_0_init_ovh_vle2() {
|
||||||
local device="/dev/sdb"
|
local device="/dev/sdb"
|
||||||
local passphrase
|
local passphrase
|
||||||
# read passphrase
|
# read passphrase
|
||||||
passphrase="$(read_passphrase)"
|
passphrase="$(sh_read_passphrase)"
|
||||||
# warn
|
# warn
|
||||||
sh_warn_wipe "${device}"
|
sh_warn_wipe "${device}"
|
||||||
#
|
#
|
||||||
|
@ -50,7 +50,7 @@ rescue_wipe_2_make_ovh_vle2() {
|
||||||
# crypt / close
|
# crypt / close
|
||||||
cryptsetup luksClose "crypt"
|
cryptsetup luksClose "crypt"
|
||||||
# read passphrase
|
# read passphrase
|
||||||
passphrase="$(read_passphrase)"
|
passphrase="$(sh_read_passphrase)"
|
||||||
# crypt / encrypt
|
# crypt / encrypt
|
||||||
sh_fs_luks_format "${passphrase}" "${device}1"
|
sh_fs_luks_format "${passphrase}" "${device}1"
|
||||||
# crypt / open
|
# crypt / open
|
||||||
|
|
|
@ -12,7 +12,7 @@ sh_not() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
read_passphrase() {
|
sh_read_passphrase() {
|
||||||
sh_read_secret "PassPhrase: "
|
sh_read_secret "PassPhrase: "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue