View Issue Details

IDProjectCategoryView StatusLast Update
0001495channel: elrepo/el8--elrepo--OTHER--public2024-12-15 06:15
Reporterspomata Assigned Totoracat  
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Summary0001495: /etc/sysconfig/kernel value not honored when set to kernel-lt-core/kernel-ml-core
DescriptionOn Rocky Linux 8, using kernel-lt installed via dnf, grub menu list order is not obeying the directive set in /etc/sysconfig/kernel:

======================================
[spomata@host ~ ]$ cat /etc/sysconfig/kernel
# UPDATEDEFAULT specifies if kernel-install should make
# new kernels the default
UPDATEDEFAULT=yes

# DEFAULTKERNEL specifies the default kernel package type
DEFAULTKERNEL=kernel-lt-core
======================================

Is there a recommended way to have the distribution obey this directive on kernel install/update?
Steps To Reproducesudo dnf install kernel-lt
sudo reboot
TagsNo tags attached.

Activities

toracat

2024-12-08 15:21

administrator   ~0010226

I can reproduce the issue. This also happens with other kernel types such as 'kernel-rt' on a system running RHEL.

However it is not consistent. There are cases where the value of DEFAULTKERNEL is honored. Needs investigation as to what is causing the different behavior.

toracat

2024-12-08 15:28

administrator   ~0010227

References

[1] https://issues.redhat.com/browse/RHEL-4343
"Updating a kernel makes it become the default even if its "family" is not the expected one"

[2] https://access.redhat.com/solutions/4326431
"Changing the default kernel in Red Hat Enterprise Linux 8 & 9"

[3] https://access.redhat.com/solutions/6975553
"Updating the RT kernel makes the system boot latest non-RT kernel or the opposite"

[4] https://docs.redhat.com/en/documentation/red_hat_enterprise_linux_for_real_time/9/html/installing_rhel_9_for_real_time/assembly_specifying-the-kernel-to-run_installing-rhel-9-for-real-time#configuring-kernel-rt-as-the-default-boot-kernel_assembly_specifying-the-kernel-to-run
"Configuring kernel-rt as the default boot kernel"

Ref [1] is interesting. It says, "DEFAULTKERNEL seems deprecated and ignored with the new /usr/lib/kernel/install.d mechanism."

spomata

2024-12-15 06:15

reporter   ~0010228

Thanks for looking into this.

According to RHEL-4343 this should be addressed by grub2-2.02-153.el8, however the grub package version I am running is newer than that and still exhibits the same behaviour.

Issue History

Date Modified Username Field Change
2024-12-05 04:48 spomata New Issue
2024-12-05 04:48 spomata Status new => assigned
2024-12-05 04:48 spomata Assigned To => toracat
2024-12-05 14:44 toracat Status assigned => acknowledged
2024-12-08 15:21 toracat Status acknowledged => confirmed
2024-12-08 15:21 toracat Note Added: 0010226
2024-12-08 15:28 toracat Note Added: 0010227
2024-12-15 06:15 spomata Note Added: 0010228