Skip to content

Commit 3e1b0bf

Browse files
committed
reinstall: Prompt before installing podman
Since podman needs to be installed at the start of the flow, let's add a prompt so the user doesn't get surprised by the podman install automatically running when simply testing the command. Signed-off-by: ckyrouac <[email protected]>
1 parent 5498363 commit 3e1b0bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system-reinstall-bootc/src/podman.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use crate::prompt;
2+
13
use super::ROOT_KEY_MOUNT_POINT;
24
use anyhow::{ensure, Context, Result};
35
use bootc_utils::CommandRunExt;
@@ -84,9 +86,7 @@ pub(crate) fn ensure_podman_installed() -> Result<()> {
8486
return Ok(());
8587
}
8688

87-
tracing::warn!(
88-
"Podman was not found on this system. It's required in order to install a bootc image. Attempting to install it automatically."
89-
);
89+
prompt::ask_yes_no("Podman was not found on this system. It's required in order to install a bootc image. Do you want to install it now?", true)?;
9090

9191
ensure!(
9292
which(podman_install_script_path()).is_ok(),

0 commit comments

Comments
 (0)