| Summary: | uname sometimes returns a wrong kernel name | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Juergen Harms <juergen.harms> |
| Component: | RPM Packages | Assignee: | Thomas Backlund <tmb> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | lewyssmith |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | coreutils-8.31-1.mga7.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: |
Copy of current /boot/grub2/grub.cfg
Output of ls -al /boot | sort |
||
|
Description
Juergen Harms
2019-05-07 22:27:46 CEST
Created attachment 10985 [details]
Copy of current /boot/grub2/grub.cfg
Created attachment 10986 [details]
Output of ls -al /boot | sort
I wonder whether the base of this is the fact of having 2 kernels at the same nominal version: 5.1.0-desktop-0.rc7.2.mga7 5.1.0-desktop-1.mga7 because there is no confusion with the earlier 5.0.7-desktop-4.mga7 . All the /boot/vmlinuz[-desktop] etc symbolic links are correct for the latest kernel. I suspect a Grub2 problem. The first Grub2 menu entry "Mageia (5.1.0-desktop-1.mga7) 7 beta-3" seems to go incorrectly to 5.1.0-desktop-0.rc7.2.mga7 ; when this is shown by uname, it is I think the kernel in use. As you say in comment 0, other menu entries seem consistent with the versions in their captions, and load & disply (uname) the expected kernel. Grub2 has no registered maintainer, so am assigning in the first instance to tmb. CC:
(none) =>
lewyssmith The date of "uname -a" is kernel build time, not install time And the version that you see in "uname -r" or "uname -a" is _always_ matching the running kernel. And the reason for you "version mismatch" in grub2 boot menu is that you have some custom stuff in: /etc/grub.d/11_custom_proxy /etc/grub.d/12_linux_proxy So whatever writes those is messing your menus , its not part of default Mageia setup ... For example the: /etc/grub.d/11_custom_proxy States: menuentry "Mageia (5.1.0-desktop-1.mga7) 7 beta-3 ( on nvme0n1p14)" but uses the -rc7.2 kernel and initrd: linuxefi /boot/vmlinuz-5.1.0-desktop-0.rc7.2.mga7 initrdefi /boot/initrd-5.1.0-desktop-0.rc7.2.mga7.img Status:
NEW =>
RESOLVED Thank you Thomas. I now realise that my principal fault was to interpret the link in /boot/vmlinuz as an indication of the name of the kernel effectively loaded; I now remembered that using /proc/cmdline is a proper way to get this information: that confirms that there has always been a match with the result provided by uname, and that the real problem was that the effectively loaded kernel was not the one I expected. |