Skip to content

Commit 6e1ccb0

Browse files
authored
Merge pull request #1297 from ckyrouac/reinstall-rust-log
reinstall: Pass RUST_LOG env var into bootc install container
2 parents 578063b + 577f29c commit 6e1ccb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

system-reinstall-bootc/src/podman.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ 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(format!("--env=RUST_LOG={rust_log}"));
38+
}
39+
3540
let mut bootc_command_and_args = [
3641
"bootc",
3742
"install",

0 commit comments

Comments
 (0)