Upgrading Linux-libre not updating grub
I have the Linux-libre from freesh installed and noticed that I had a few kernels that were not the right version in my grub. There were some outdated versions. My /boot/grub/grub.cfg currently reads the latest and only grub versions. I had to modify the grub to boot the latest 6.1.11 version instead of older ones including 6.1.8 to get to my current session. I would advise people to ensure they are booting the correct version.
When I check my /boot/grub/grub.cfg I see 5.4.230 in there which matches the kernel I'm currently running as I write this. How are you installing the kernels? I mean, the linux-image-* packages contain a postinst hook to run both linux-update-symlinks so that both the /vmlinuz and /initrd.img symlinks get updated to point to the correct location, and to also run the scripts in /etc/kernel/postinst.d which includes zz-update-grub, just like the official kernels do.
Installing the latest official kernel of Trisquel did not help the situation.
These are the apt upgrades I have done according to the apt history log.
Start-Date: 2023-02-02 23:50:53
Commandline: apt upgrade
Requested-By: anon (1000)
Install: linux-image-6.1.9-gnu:amd64 (6.1.9-gnu-1.0, automatic)
Upgrade: linux-libre:amd64 (6.1.8, 6.1.9)
End-Date: 2023-02-02 23:53:37
Start-Date: 2023-02-09 18:28:47
Commandline: apt upgrade
Requested-By: anon (1000)
Install: linux-image-6.1.11-gnu:amd64 (6.1.11-gnu-1.0, automatic)
Upgrade: linux-libre:amd64 (6.1.10, 6.1.11)
End-Date: 2023-02-09 18:30:02
Start-Date: 2023-02-09 18:59:58
Commandline: apt install linux-image-5.13.0-52-generic
Requested-By: anon (1000)
Install: linux-image-5.13.0-52-generic:amd64 (5.13.0-52.59~20.04.1+10.0trisquel4), linux-modules-5.13.0-52-generic:amd64 (5.13.0-52.59~20.04.1+10.0trisquel4, automatic)
End-Date: 2023-02-09 19:00:37
If the normal Trisquel kernels *also* don't update your grub configuration it seems that this isn't really a problem related to the Linux-libre kernels, then, but something else since it would seem that neither are working. What happens if you run sudo update-grub on your own?
Neither sudo update-grub
nor sudo update-grub2
do anything.
I guess what is happening is I have aramo and nabia booting on this machine and aramo seems to have greater priority that for some reason nabia version of grub will not do anything.
I updated grub with the command jxself suggested in aramo and it seems back to normal. I don't know why nabia's update-grub doesn't overwrite grub from aramo.