Skip to content

Commit bc9f4a2

Browse files
committed
reinstall: Fix the --user option in podman command
The --user option in podman command was not correctly split into two arguments. This caused the command to fail with the following error: ``` Error: unknown flag: --user root:root ``` Signed-off-by: Omer Tuchfeld <[email protected]>
1 parent 6c40145 commit bc9f4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system-reinstall-bootc/src/podman.rs

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

0 commit comments

Comments
 (0)