Skip to content

Commit

Permalink
add kernel vanilla stable copr
Browse files Browse the repository at this point in the history
  • Loading branch information
aussielunix committed Feb 16, 2024
1 parent 0add8ac commit 35ca4f2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq
# Change this if you want different version/tag of akmods.
COPY --from=ghcr.io/ublue-os/akmods:main-39 /rpms /tmp/rpms

# Add kernel-vanilla-stable COPR and install newer kernel
# Add the ublue copr repo, Run the build script, then clean up temp files
RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-$(rpm -E %fedora)/ublue-os-staging-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_ublue-os_staging.repo && \
chmod +x /tmp/build.sh && \
/tmp/build.sh && \
rm -f /etc/yum.repos.d/_copr_ublue-os_staging.repo && \
rm -rf /tmp/* /var/*

# Add kernel-vanilla-stable COPR and install newer kernel and finalize container build.
# https://coreos.github.io/rpm-ostree/ex-replace/
RUN wget "https://copr.fedorainfracloud.org/coprs/g/kernel-vanilla/stable/repo/fedora-rawhide/group_kernel-vanilla-stable-fedora-rawhide.repo" \
-O /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:group_kernel-vanilla:stable.repo && \
rpm-ostree override replace --experimental --freeze --from repo='copr:copr.fedorainfracloud.org:group_kernel-vanilla:stable' \
kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra
kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra && \
ostree container commit

# Add the ublue copr repo, Run the build script, then clean up temp files and finalize container build.
RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-$(rpm -E %fedora)/ublue-os-staging-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_ublue-os_staging.repo && \
chmod +x /tmp/build.sh && \
/tmp/build.sh && \
rm -f /etc/yum.repos.d/_copr_ublue-os_staging.repo && \
rm -rf /tmp/* /var/* && \
ostree container commit

0 comments on commit 35ca4f2

Please sign in to comment.