summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-13 07:54:43 +0100
committerGitHub <noreply@github.com>2023-12-13 07:54:43 +0100
commitfc79bc088a69318ec960396b8757849e86c11f20 (patch)
tree1d377bb4c3f9e2b8cb66c43422e727053b09e191 /src/op_mode
parentdd64840da821e43667d77453b80010c36acc5d4e (diff)
parentcf83979636c686a459d6dc75dcd98e342c70b1b3 (diff)
downloadvyos-1x-fc79bc088a69318ec960396b8757849e86c11f20.tar.gz
vyos-1x-fc79bc088a69318ec960396b8757849e86c11f20.zip
Merge pull request #2622 from jestabro/obscure-passwd-on-install
image-tools: T5819: do not echo password on image install
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/image_installer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index b3e6e518c..9452c5e28 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -611,7 +611,8 @@ def install_image() -> None:
print(MSG_WARN_IMAGE_NAME_WRONG)
# ask for password
- user_password: str = ask_input(MSG_INPUT_PASSWORD, default='vyos')
+ user_password: str = ask_input(MSG_INPUT_PASSWORD, default='vyos',
+ no_echo=True)
# ask for default console
console_type: str = ask_input(MSG_INPUT_CONSOLE_TYPE,