Skip to content

Commit 6c217e5

Browse files
committed
reinstall: Print ssh key clarification message
Trying to make the purpose of selecting a user more clear. Signed-off-by: ckyrouac <ckyrouac@redhat.com>
1 parent ca2be40 commit 6c217e5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

system-reinstall-bootc/src/prompt.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ fn prompt_single_user(user: &crate::users::UserKeys) -> Result<Vec<&crate::users
1212
let prompt = indoc::formatdoc! {
1313
"Found only one user ({user}) with {num_keys} SSH authorized keys.
1414
Would you like to import its SSH authorized keys
15-
into the root user on the new bootc system?",
15+
into the root user on the new bootc system?
16+
Then you can login as root@ using those keys.",
1617
user = user.user,
1718
num_keys = user.num_keys(),
1819
};
@@ -28,8 +29,10 @@ fn prompt_user_selection(
2829
// TODO: Handle https://github.com/console-rs/dialoguer/issues/77
2930
let selected_user_indices: Vec<usize> = dialoguer::MultiSelect::new()
3031
.with_prompt(indoc::indoc! {
31-
"Select which user's SSH authorized keys you want to
32-
import into the root user of the new bootc system",
32+
"Select which user's SSH authorized keys you want to import into
33+
the root user of the new bootc system.
34+
Then you can login as root@ using those keys.
35+
(arrow keys to move, space to select)",
3336
})
3437
.items(&keys)
3538
.interact()?;

0 commit comments

Comments
 (0)