Skip to content

Commit

Permalink
Merge pull request #1133 from ckyrouac/reinstall-old-versions2
Browse files Browse the repository at this point in the history
reinstall: Support legacy images in system-reinstall-bootc
  • Loading branch information
cgwalters authored Feb 24, 2025
2 parents d1893c9 + 0f54ded commit 9b01127
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 9b01127

Please sign in to comment.