Skip to content

Commit

Permalink
Merge pull request #1116 from germag/force-run-as-root-user
Browse files Browse the repository at this point in the history
Set the UID/GID of podman-run to root
  • Loading branch information
cgwalters authored Feb 14, 2025
2 parents f222c1e + 5c6b616 commit 7592807
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system-reinstall-bootc/src/podman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ pub(crate) fn command(image: &str, root_key: &Option<UserKeys>) -> Command {
"--privileged",
// The container needs to access the host's PID namespace to mount host directories
"--pid=host",
// Set the UID/GID to root overwriting any possible USER directive in the Containerfile
"--user root:root",
// Since https://github.com/containers/bootc/pull/919 this mount should not be needed, but
// some reason with e.g. quay.io/fedora/fedora-bootc:41 it is still needed.
"-v",
Expand Down

0 comments on commit 7592807

Please sign in to comment.