[opensuse-support] [Leap 42.3] - grub does not reflect latest installed kernels
Hi, I am running a Leap 42.3 (old, I know) VM and I noticed that I am not running the latest kernel. $ rpm -q kernel-default kernel-default-4.4.79-18.23.1.x86_64 kernel-default-4.4.180-102.1.x86_64 $ uname -r 4.4.79-18.23-default I tried to - reboot - remove one of the kernels (there were three entries previously) - run mkinitrd which did not solve the problem. Then I looked in /boot/grub2/grub.cfg and I noted that the latest kernel listed is 4.4.79-18.23-default, and several no longer installed kernels are listed. I ran # grub2-mkconfig > /boot/grub2/grub.cfg.alt and then checked for diffs $ diff -u /boot/grub2/grub.cfg{,.alt} Except for some font ordering changes it seems that now the kernel versions are correct so I replaced the file. My question then is - why did this happen and how can I prevent it from happening again? Thanks, Robert -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 10/07/2020 13.46, Robert Munteanu wrote:
Hi,
I am running a Leap 42.3 (old, I know) VM and I noticed that I am not running the latest kernel.
How do you expect to run the latest kernel, when 42.3 is out of maintenance? There are no updates. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Hi Carlos, On Fri, 2020-07-10 at 13:53 +0200, Carlos E. R. wrote:
On 10/07/2020 13.46, Robert Munteanu wrote:
Hi,
I am running a Leap 42.3 (old, I know) VM and I noticed that I am not running the latest kernel.
How do you expect to run the latest kernel, when 42.3 is out of maintenance? There are no updates.
As I have mentioned, I have multiple kernels installed from the 42.3 repos $ rpm -q kernel-default kernel-default-4.4.79-18.23.1.x86_64 kernel-default-4.4.180-102.1.x86_64 However, that is not reflected in grub.cfg. This is my problem, not running KOTD or kernel-stable. I have tumbleweed for that :-) Thanks, Robert -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 10/07/2020 14.23, Robert Munteanu wrote:
Hi Carlos,
On Fri, 2020-07-10 at 13:53 +0200, Carlos E. R. wrote:
On 10/07/2020 13.46, Robert Munteanu wrote:
Hi,
I am running a Leap 42.3 (old, I know) VM and I noticed that I am not running the latest kernel.
How do you expect to run the latest kernel, when 42.3 is out of maintenance? There are no updates.
As I have mentioned, I have multiple kernels installed from the 42.3 repos
$ rpm -q kernel-default kernel-default-4.4.79-18.23.1.x86_64 kernel-default-4.4.180-102.1.x86_64
However, that is not reflected in grub.cfg. This is my problem, not running KOTD or kernel-stable. I have tumbleweed for that :-)
But then I don't understand what changed, how grub got changed. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
On Fri, 2020-07-10 at 14:25 +0200, Carlos E. R. wrote:
On 10/07/2020 14.23, Robert Munteanu wrote:
Hi Carlos,
On Fri, 2020-07-10 at 13:53 +0200, Carlos E. R. wrote:
On 10/07/2020 13.46, Robert Munteanu wrote:
Hi,
I am running a Leap 42.3 (old, I know) VM and I noticed that I am not running the latest kernel.
How do you expect to run the latest kernel, when 42.3 is out of maintenance? There are no updates.
As I have mentioned, I have multiple kernels installed from the 42.3 repos
$ rpm -q kernel-default kernel-default-4.4.79-18.23.1.x86_64 kernel-default-4.4.180-102.1.x86_64
However, that is not reflected in grub.cfg. This is my problem, not running KOTD or kernel-stable. I have tumbleweed for that :-)
But then I don't understand what changed, how grub got changed.
This is also in my original email ... I manually ran grub2-mkconfig. Thanks, Robert -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 7/10/20 6:46 AM, Robert Munteanu wrote:
Then I looked in /boot/grub2/grub.cfg and I noted that the latest kernel listed is 4.4.79-18.23-default, and several no longer installed kernels are listed.
When you install/remove a kernel, then the script that updates the bootloader is called. This is supposed to update grub.cfg What could go wrong? It is possible to have a different bootloader. The script looks at its pointers to see what bootloader is in use, and updates that. If those pointers are wrong or missing, you can have the problem you are seeing. If you originally installed with gecko-linux, then it did not set those pointers correctly. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Neil Rickert
-
Robert Munteanu