Skip to content

Conversation

@ckyrouac
Copy link
Collaborator

@ckyrouac ckyrouac commented May 5, 2025

This enables RUST_LOG=trace system-reinstall-bootc <image> to print trace messages for the bootc install invocation.

@ckyrouac ckyrouac requested a review from Copilot May 5, 2025 15:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables the bootc install container to receive the host’s RUST_LOG environment variable so that trace logging is available during installation.

  • A conditional block is added in podman.rs that checks for the RUST_LOG variable.
  • If set, the environment variable is passed into the podman command arguments.

@github-actions github-actions bot added the area/system-reinstall-bootc Issues related to system-reinstall-botoc label May 5, 2025
Comment on lines 37 to 38
podman_command_and_args.push("-e".to_string());
podman_command_and_args.push(format!("RUST_LOG={rust_log}"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minorest-of-minor nits but this would be shorter to read and simpler as

podman_command_and_args.push(format!("--env=RUST_LOG={rust_log}"));

This enables `RUST_LOG=trace system-reinstall-bootc <image>` to print
trace messages for the bootc install invocation.

Signed-off-by: ckyrouac <[email protected]>
@ckyrouac ckyrouac force-pushed the reinstall-rust-log branch from 328b4ba to 577f29c Compare May 5, 2025 16:10
@cgwalters
Copy link
Collaborator

Related to this but I wonder if s-r-b should gain e.g. --podman-arg=--env=RUST_LOG=trace to fully generalize support for arbitrary changes? That'd be equally easy I think.

@cgwalters cgwalters merged commit 6e1ccb0 into bootc-dev:main May 5, 2025
30 of 31 checks passed
@jmarrero jmarrero mentioned this pull request May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/system-reinstall-bootc Issues related to system-reinstall-botoc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants