Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: double kernel in base #5

Merged
merged 1 commit into from
Nov 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions base/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ RUN dnf install -y --repofrompath "ultramarine,https://repos.fyralabs.com/um$(rp
RUN dnf swap -y --allowerasing fedora-release-common ultramarine-release-identity-basic
RUN dnf swap -y fedora-logos ultramarine-logos

# Delete old kernels (and maybe all kernels except the latest one)

# check if there are any old kernels then remove them
# if empty then do nothing
# RUN if [ -n "$(dnf repoquery --installonly --latest-limit=-1 -q)" ]; then dnf remove -y $(dnf repoquery --installonly --latest-limit=-1 -q); fi
# RUN dnf remove -y $(dnf repoquery --installonly --latest-limit=-1 -q) || true
# Remove existing kernel
RUN for pkg in kernel kernel-core kernel-modules kernel-modules-core ; do rpm --erase $pkg --nodeps ; done

# reinstall kernel modules and stuff for the new kernel, install new kernel in case the old one was removed
# Also install some extra packages :3
RUN dnf install -y kernel kernel-core kernel-modules{,-core,-extra} linux-firmware fwupd fwupd-efi @ultramarine-product-common
RUN dnf4 clean all && dnf clean all

# (why isnt this here?)
RUN rm -rf /root

# Regenerate initramfs for new kernel
RUN dracut -fv --regenerate-all

# Lint the container for any faulty changes
RUN bootc container lint
Loading