From a277f90936f57c1623e87634ec4643c99cb113cb Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Tue, 24 Sep 2024 12:59:25 +0700 Subject: [PATCH] oldinstallonly for purge --- base/Containerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/Containerfile b/base/Containerfile index 852edb8..163f673 100644 --- a/base/Containerfile +++ b/base/Containerfile @@ -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