Skip to content

Commit

Permalink
chore: alternatives workaround refactor (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored Mar 26, 2024
1 parent 5e07ee4 commit e832505
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 !!!
Expand Down

0 comments on commit e832505

Please sign in to comment.