Skip to content

Commit 43e4bb8

Browse files
tomis007tomis007
tomis007
authored and
tomis007
committed
systemd ask password add prompt message
1 parent 52cb944 commit 43e4bb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prompt/prompt.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ func SBCTLPrompt(validate func(string) error, label string, mask *rune) (string,
1515
} else {
1616
logging.Warn("not running in a TTY -- prompting with systemd-ask-password")
1717
logging.Warn(fmt.Sprintf("(PROMPT) %s", label))
18-
logging.Print("Run \"systemd-tty-ask-password-agent --query\" in another terminal\n")
18+
logging.Warn("Run \"systemd-tty-ask-password-agent --query\" in another terminal\n")
1919
cmd := exec.Command("/usr/bin/systemd-ask-password",
2020
"--emoji=no",
2121
"--timeout=0",
2222
"-n",
2323
"--echo=masked",
24+
"sbctl Yubikey PIN",
2425
)
2526
output, err := cmd.Output()
2627
if err != nil {

0 commit comments

Comments
 (0)