chore(fsync): Clean up kernel installation

This commit is contained in:
RJ Trujillo 2023-11-30 10:54:31 -07:00
parent 3d8cfc7acf
commit 1dce4b22b1

View File

@ -37,35 +37,20 @@ RUN wget https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/repo/fedora-$
# Install kernel-fsync
RUN wget https://copr.fedorainfracloud.org/coprs/sentry/kernel-fsync/repo/fedora-$(rpm -E %fedora)/sentry-kernel-fsync-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_sentry-kernel-fsync.repo && \
rpm-ostree cliwrap install-to-root / && \
case "${IMAGE_FLAVOR}" in \
main|asus|framework) \
rpm-ostree override replace \
--experimental \
--from repo=copr:copr.fedorainfracloud.org:sentry:kernel-fsync \
kernel \
kernel-core \
kernel-modules \
kernel-modules-core \
kernel-modules-extra \
kernel-uki-virt \
;; \
surface) \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/linux-surface.repo && \
wget https://github.com/linux-surface/linux-surface/releases/download/silverblue-20201215-1/kernel-20201215-1.x86_64.rpm -O \
/tmp/surface-kernel.rpm && \
rpm-ostree override replace \
--experimental \
--from repo=copr:copr.fedorainfracloud.org:sentry:kernel-fsync \
/tmp/surface-kernel.rpm \
--remove kernel-surface \
--install kernel \
--install kernel-core \
--install kernel-modules \
--install kernel-modules-core \
--install kernel-modules-extra \
--install kernel-uki-virt \
;; \
esac
if [[ "" =~ "surface" ]]; then \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/linux-surface.repo && \
rpm-ostree override remove \
kernel-surface \
; fi && \
rpm-ostree override replace \
--experimental \
--from repo=copr:copr.fedorainfracloud.org:sentry:kernel-fsync \
kernel \
kernel-core \
kernel-modules \
kernel-modules-core \
kernel-modules-extra \
kernel-uki-virt
# Add ublue packages, add needed negativo17 repo and then immediately disable due to incompatibility with RPMFusion
COPY --from=ghcr.io/ublue-os/akmods:${AKMODS_FLAVOR}-${FEDORA_MAJOR_VERSION} /rpms /tmp/akmods-rpms