libera/#devuan/ Thursday, 2024-10-24

tempforeverI've got a buster->beowulf->chimaera->daedalus installation, rebooted after each migration/dist-upgrade stage.  It has kernel 6.1.0-26 installed, but it keeps booting into 4.19.0-25 (from buster/beowulf).  Any idea why it won't boot to the newer kernel, what things I can check?18:21
tempforeverIf it matters (and it may) this is a VPS.  I have another one with the same company that does boot the 6.1 kernel.18:26
rwptempforever, It's a VPS?  Does the 4.19.0-25 kernel still exist on the system?  Or is it the hosting that is booting that kernel from elsewhere/18:38
rwp*elsewhere?  It is possible for the VPS hosting to force booting a specific kernel.  Linode has an option to do that for example.18:39
rwpHowever when Linode does that it is one of the very latest kernels.18:39
rwpAlso, if you are using the symlinks to boot then check that they are updating correctly.  (I don't use the symlinks.)  ls -l /18:39
rwpCheck this, if it exists: grep do_symlinks /etc/kernel-img.conf18:40
rwpAnd also related: grep link_in_boot /etc/kernel-img.conf18:40
tempforeverthe 4.19 kernel exists in /boot and is a warning when I try to remove it, as it's the kernel in use18:40
rwpIs it booting from /vmlinuz -> boot/vmlinuz-4.19.0-25-amd64 something something there because the symlink was not updated?18:41
tempforever /etc/kernel-img.conf  : do_symlinks = yes18:42
tempforeverlink_in_boot = no18:43
rwpIt's the linux-update-symlinks command which is called by the package to update those symlinks.  I have seen systems where it thought they were manually overridden and therefore it intentionally avoided updating the symlinks.  They needed to be manually updated in order to get moving forward again.18:43
rwpAlso, ensure you have "linux-image-amd64" package installed as that is the package that is upgraded and pulls in the newer kernel packages.18:44
tempforever /initrd.img -> boot/initrd.img-6.1.0-26-amd64  /vmlinux also points to 6.118:44
tempforeverlinux-image-amd64:  Installed: 6.1.112-118:45
rwpHmm...  Deeper digging then, I would run "update-grub" manually and see what output it prints out.18:45
rwpExample output from an Unstable system: https://paste.debian.net/plain/133333318:46
tempforeverI actually just tried that (update-grub) and rebooted.   it finds both 6.1 and 4.19 (in that order)18:46
rwpThe result of that is the /boot/grub/grub.cfg file.  You would browse that file and verify the result.18:46
rwpDouble check /etc/default/grub and look for the GRUB_DEFAULT=0 line.  That's the default booting kernel in the array booting entry 0 the first kernel.  If it says GRUB_DEFAULT=1 then it would boot the 2nd kernel.18:47
tempforeverGRUB_DEFAULT=018:48
rwpHmm...  Verify that in the /boot/grub/grub.cfg file that the first entry really is the new kernel.  Look for the first "linux/vmlinuz-....." line.18:49
tempforeverthere is no /boot/grub/grub.cfg.  there is a /boot/grub2/grub.cfg (dated 10/6/2022) which is odd since grub2 is not installed.18:49
tempforeveroh, that grub2/grub.cfg is a symlink to grub/menu.lst18:49
rwp/boot/grub2/??  I know you started with buster->beowulf->chimaera->daedalus but my systems with exactly the same path have /boot/grub/ there.  Hmm...18:50
tempforeverthat's the only file in "grub2"  the rest are in "grub"18:50
rwpmenu.lst is GRUB v1 not GRUB2.18:50
rwpI must assume that /boot/grub2/ is just there on disk and not used.  Since it seems to be nonsense there.  Check /boot/grub/ for the grub.cfg file.18:51
rwpI am heading AFK for some time.  Good luck!18:53
tempforevermenu.lst only contains 4.19 even though update-grub lists both 6.1 and 4.19, so I think we found the problem18:53
tempforeverI'm going to compare my other working grub config with this one18:54
tempforeverOK I basically copied the grub.cfg from the 6.1-working-vps to the 4.19-stuck-vps, edited it and rebooted, it's now running 6.1 kernel19:09
tempforevernot grub.cfg, it was menu.lst19:11
tempforeverThanks for your help19:15
rwpThat feels strange to me that menu.lst is being used at all in this current time.  I feel this is something particular to this VPS provider.  (I am a quick on and off the keyboard and now gone again.)20:04
fsmithredgrub-legacy still exists, even in ceres.20:23
fsmithredand still hasn't reached version 1.020:23
tempforeveryeah this is using grub-legacy21:24

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!