Skip to content

Commit 0f54ded

Browse files
committed
reinstall: Support legacy images in system-reinstall-bootc
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]>
1 parent 5309d5b commit 0f54ded

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

system-reinstall-bootc/src/podman.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ pub(crate) fn command(image: &str, root_key: &Option<UserKeys>) -> Command {
1717
"--pid=host",
1818
// Set the UID/GID to root overwriting any possible USER directive in the Containerfile
1919
"--user=root:root",
20-
// Since https://github.com/containers/bootc/pull/919 this mount should not be needed, but
21-
// some reason with e.g. quay.io/fedora/fedora-bootc:41 it is still needed.
20+
// Keep these here to support images with bootc versions prior to 1.1.5
21+
// when these parameters were obsoleted
2222
"-v",
2323
"/var/lib/containers:/var/lib/containers",
24+
"-v",
25+
"/dev:/dev",
26+
"--security-opt",
27+
"label=type:unconfined_t",
28+
"-v",
29+
"/:/target",
2430
]
2531
.map(String::from)
2632
.to_vec();

0 commit comments

Comments
 (0)