From e8325053bdbb7759ce10eadbbfaa6f76491d9af1 Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Tue, 26 Mar 2024 17:48:04 -0500 Subject: [PATCH] chore: alternatives workaround refactor (#536) --- Containerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index b57e60ed..d9f07b14 100644 --- a/Containerfile +++ b/Containerfile @@ -21,11 +21,15 @@ COPY --from=ghcr.io/ublue-os/config:latest /rpms /tmp/rpms COPY --from=ghcr.io/ublue-os/akmods:main-${FEDORA_MAJOR_VERSION} /rpms/ublue-os /tmp/rpms COPY sys_files/usr /usr -RUN /tmp/install.sh && \ +RUN mkdir -p /var/lib/alternatives && \ + /tmp/install.sh && \ /tmp/post-install.sh && \ + mv /var/lib/alternatives /staged-alternatives && \ rm -rf /tmp/* /var/* && \ ostree container commit && \ - mkdir -p /var/tmp && chmod -R 1777 /var/tmp + mkdir -p /var/lib && mv /staged-alternatives /var/lib/alternatives && \ + mkdir -p /tmp /var/tmp && \ + chmod -R 1777 /tmp /var/tmp # !!! WARNING - KMODS IN MAIN IMAGES ARE DEPRECATED !!!