diff --git a/sh/rescue/hetzner.sh b/sh/rescue/hetzner.sh index 9de13db..8d7f02b 100644 --- a/sh/rescue/hetzner.sh +++ b/sh/rescue/hetzner.sh @@ -7,7 +7,7 @@ rescue_wipe_0_init_hetzner_8_8() { local number local passphrase # read passphrase - passphrase="$(read_passphrase)" + passphrase="$(sh_read_passphrase)" # warn sh_warn_wipe "${@}" # @@ -105,7 +105,7 @@ rescue_wipe_2_make_hetzner_8_8() { # close cryptsetup luksClose "crypt" # read passphrase - passphrase="$(read_passphrase)" + passphrase="$(sh_read_passphrase)" # encrypt sh_fs_luks_format "${passphrase}" "/dev/md/crypt" # open diff --git a/sh/rescue/ovh.sh b/sh/rescue/ovh.sh index e7e2ea8..0d3c860 100644 --- a/sh/rescue/ovh.sh +++ b/sh/rescue/ovh.sh @@ -2,7 +2,7 @@ rescue_wipe_0_init_ovh_vle2() { local device="/dev/sdb" local passphrase # read passphrase - passphrase="$(read_passphrase)" + passphrase="$(sh_read_passphrase)" # warn sh_warn_wipe "${device}" # @@ -50,7 +50,7 @@ rescue_wipe_2_make_ovh_vle2() { # crypt / close cryptsetup luksClose "crypt" # read passphrase - passphrase="$(read_passphrase)" + passphrase="$(sh_read_passphrase)" # crypt / encrypt sh_fs_luks_format "${passphrase}" "${device}1" # crypt / open diff --git a/sh/util.sh b/sh/util.sh index e5f9c82..0454ba8 100644 --- a/sh/util.sh +++ b/sh/util.sh @@ -12,7 +12,7 @@ sh_not() { esac } -read_passphrase() { +sh_read_passphrase() { sh_read_secret "PassPhrase: " }