Skip to content

Commit 7592807

Browse files
authored
Merge pull request #1116 from germag/force-run-as-root-user
Set the UID/GID of podman-run to root
2 parents f222c1e + 5c6b616 commit 7592807

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

system-reinstall-bootc/src/podman.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ pub(crate) fn command(image: &str, root_key: &Option<UserKeys>) -> Command {
1515
"--privileged",
1616
// The container needs to access the host's PID namespace to mount host directories
1717
"--pid=host",
18+
// Set the UID/GID to root overwriting any possible USER directive in the Containerfile
19+
"--user root:root",
1820
// Since https://github.com/containers/bootc/pull/919 this mount should not be needed, but
1921
// some reason with e.g. quay.io/fedora/fedora-bootc:41 it is still needed.
2022
"-v",

0 commit comments

Comments
 (0)