Skip to main content
Topic: Old linux kernel kept being revert to after update (Read 1354 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Old linux kernel kept being revert to after update

I have recently switched to a new laptop, but instead of installing a new Artix linux system from scratch like usual, I decided to be cheap and just used boot saver to get grub working. It worked, I managed to boot into my old SSD without wiping everything.

But every time `linux` update, the new kernel would be used instead of the new one being loaded in. Which would cause things to break. `uname -r` display the old kernel, `mkinitcpio` fail, etc.

I am able to fix it by booting up an installation ISO, mount my drives and chroot in, reinstall `linux linux-header` and update grub. But it would fail next time Linux update.

Not sure why this is the case :v

Re: Old linux kernel kept being revert to after update

Reply #1
Some possible things to look at: check BIOS settings, /etc/fstab, /etc/mkinitcpio.d, /etc/grub.d and /etc/default/grub are correct and have no old custom config from the last install. Boot into the system, re-install grub with grub-install using the correct arguments for your case, run update-grub, mkinitcpio -P and see if that helps? You can look in /boot/grub/grub.cfg to see what it has written. If you have a separate /boot partition is it being mounted properly? Is there some BIOS setting for the EFI file location that needs changing? Are the things in /boot getting updated properly when you run mkinitcpio -P, look at the time stamps and names?

Re: Old linux kernel kept being revert to after update

Reply #2
Sounds suspiciously like the update is placing the new kernel in a different place than update grub is using.
As ####### said check the setup of your /boot partition.