From b15f56b83a05484f2162c560c01b0d19c6ac9c0b Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Mon, 1 Jan 2024 21:46:11 +0530 Subject: [PATCH] show newer kernel in grub lol --- includes/post/grub-setup.ksi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/post/grub-setup.ksi b/includes/post/grub-setup.ksi index 1d63c30..f32c377 100644 --- a/includes/post/grub-setup.ksi +++ b/includes/post/grub-setup.ksi @@ -12,4 +12,15 @@ else exit 1 fi +cat << EOF > /etc/sysconfig/kernel +# the latest kernel should be the first entry in the bootloader +# this should be the default, but here we are +UPDATEDEFAULT=yes + +# name of the package providing the kernel +DEFAULTKERNEL=kernel-core +EOF + +chmod 644 /etc/sysconfig/kernel + %end