Skip to content

Commit

Permalink
reinstall: Support legacy images in system-reinstall-bootc
Browse files Browse the repository at this point in the history
Add the "legacy" paramaters to the podman run invocation because there
are existing bootc images that need these parameters when running
install to-existing-root.

fixes #1090

Signed-off-by: ckyrouac <[email protected]>
  • Loading branch information
ckyrouac committed Feb 20, 2025
1 parent 5309d5b commit 0f54ded
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions system-reinstall-bootc/src/podman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ pub(crate) fn command(image: &str, root_key: &Option<UserKeys>) -> Command {
"--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.
// Keep these here to support images with bootc versions prior to 1.1.5
// when these parameters were obsoleted
"-v",
"/var/lib/containers:/var/lib/containers",
"-v",
"/dev:/dev",
"--security-opt",
"label=type:unconfined_t",
"-v",
"/:/target",
]
.map(String::from)
.to_vec();
Expand Down

0 comments on commit 0f54ded

Please sign in to comment.