Skip to content

Commit 18a00c2

Browse files
authored
Merge pull request #1119 from omertuc/typo2
reinstall: Fix the --user option in podman command
2 parents 7592807 + bc9f4a2 commit 18a00c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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",

utils/src/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl CommandRunExt for Command {
144144
.then_some(())
145145
// The [`Debug`] output of command contains a properly shell-escaped commandline
146146
// representation that the user can copy paste into their shell
147-
.context("Failed to run command: {self:#?}")
147+
.context(format!("Failed to run command: {self:#?}"))
148148
}
149149
}
150150

0 commit comments

Comments
 (0)