Skip to content

Commit 328b4ba

Browse files
committed
reinstall: Pass RUST_LOG env var into bootc install container
This enables `RUST_LOG=trace system-reinstall-bootc <image>` to print trace messages for the bootc install invocation. Signed-off-by: ckyrouac <[email protected]>
1 parent 578063b commit 328b4ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

system-reinstall-bootc/src/podman.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ pub(crate) fn reinstall_command(image: &str, ssh_key_file: &str) -> Command {
3232
.map(String::from)
3333
.to_vec();
3434

35+
// Pass along RUST_LOG from the host to enable detailed output from the bootc command
36+
if let Ok(rust_log) = std::env::var("RUST_LOG") {
37+
podman_command_and_args.push("-e".to_string());
38+
podman_command_and_args.push(format!("RUST_LOG={rust_log}"));
39+
}
40+
3541
let mut bootc_command_and_args = [
3642
"bootc",
3743
"install",

0 commit comments

Comments
 (0)