From 0f54ded99eba0668a1cace52c21356f9bc310194 Mon Sep 17 00:00:00 2001 From: ckyrouac Date: Thu, 20 Feb 2025 15:41:11 -0500 Subject: [PATCH] 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 --- system-reinstall-bootc/src/podman.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/system-reinstall-bootc/src/podman.rs b/system-reinstall-bootc/src/podman.rs index ad0ef829..5ba7250c 100644 --- a/system-reinstall-bootc/src/podman.rs +++ b/system-reinstall-bootc/src/podman.rs @@ -17,10 +17,16 @@ pub(crate) fn command(image: &str, root_key: &Option) -> 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();