Skip to content

Commit

Permalink
oldinstallonly for purge
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Sep 24, 2024
1 parent d8047f0 commit a277f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ RUN dnf swap -y --allowerasing fedora-release-common ultramarine-release-identit
RUN dnf swap -y fedora-logos ultramarine-logos

# Delete old kernels
RUN dnf remove -y $(dnf repoquery --installonly --latest-limit=1 -q)
RUN dnf remove -y --oldinstallonly

# Install kernel modules and stuff for the new kernel, because the old ones are gone???
# Also install some extra packages :3
RUN dnf install -y kernel-modules{,-core,-extra,-internal} linux-firmware fwupd fwupd-efi @ultramarine-product-common
RUN dnf install -y kernel kernel-modules{,-core,-extra,-internal} linux-firmware fwupd fwupd-efi @ultramarine-product-common

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

0 comments on commit a277f90

Please sign in to comment.