kernel not upgrading?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 15 of 15
  1. #1
    Join Date
    Apr 2018
    Location
    ok, usa
    Posts
    15
    Linux (Fedora) Firefox 61.0

    kernel not upgrading?

    Hi all,

    I just logged into my Fedora 28 mate and did my updates. Among others it said kernel was upgrading to 4.17.11-200. When i finished the upgrades and rebooted, uname -r shows 4.16.3-301.fc28.x86_64. Is that not the right command? Is there something more i need to do to start using the newest updates? Thanks.

  2. #2
    Join Date
    Dec 2017
    Location
    Sosnowiec, PL
    Age
    36
    Posts
    31
    Linux Firefox 61.0

    Re: kernel not upgrading?

    Could you post output of commands (first as root or prepended by sudo) ?
    Code:
    grep menuentry /boot/grub/grub.cfg
    Code:
    cat /etc/defatult/grub
    marcin82

  3. #3
    Join Date
    Apr 2018
    Location
    ok, usa
    Posts
    15
    Linux (Fedora) Firefox 61.0

    Re: kernel not upgrading?

    grep: /boot/grub/grub.cfg: No such file or directory
    cat: /etc/defatult/grub: No such file or directory
    Well that's odd. I have since installed other OSs so there is another grub booting the machine. Still i would have thought there would be a file here as Fedora's grub was once doing that job.

  4. #4
    Join Date
    Dec 2017
    Location
    Sosnowiec, PL
    Age
    36
    Posts
    31
    Linux Firefox 61.0

    Re: kernel not upgrading?

    Sorry, there are two typos in my previous post - commands should like this:
    Code:
    grep menuentry /boot/grub2/grub.cfg
    Code:
    cat /etc/default/grub
    marcin82

  5. #5
    Join Date
    Apr 2018
    Location
    ok, usa
    Posts
    15
    Linux (Fedora) Firefox 61.0

    Re: kernel not upgrading?

    [root@localhost billd]# grep menuentry /boot/grub2/grub.cfg
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    menuentry_id_option=""
    export menuentry_id_option
    menuentry 'Fedora (4.17.11-200.fc28.x86_64) 28 (Twenty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.16.3-301.fc28.x86_64-advanced-1c12ba04-0220-4bea-ae5d-62046377d544' {
    menuentry 'Fedora (4.17.9-200.fc28.x86_64) 28 (Twenty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.16.3-301.fc28.x86_64-advanced-1c12ba04-0220-4bea-ae5d-62046377d544' {
    menuentry 'Fedora (4.16.3-301.fc28.x86_64) 28 (Twenty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.16.3-301.fc28.x86_64-advanced-1c12ba04-0220-4bea-ae5d-62046377d544' {
    menuentry 'Fedora (0-rescue-6ff9b962cb4b4d379e28ed975ac17ca0) 28 (Twenty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-6ff9b962cb4b4d379e28ed975ac17ca0-advanced-1c12ba04-0220-4bea-ae5d-62046377d544' {
    menuentry 'Arch Linux (rolling) (on /dev/sda4)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    submenu 'Advanced options for Arch Linux (rolling) (on /dev/sda4)' $menuentry_id_option 'osprober-gnulinux-advanced-b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    menuentry 'ArchLabs Linux (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    menuentry 'ArchLabs Linux, with Linux linux (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    menuentry 'ArchLabs Linux, with Linux linux (fallback initramfs) (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    menuentry 'Memory Tester (memtest86+) (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/memtest86+/memtest.bin--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {

    and
    [root@localhost billd]# cat /etc/default/grub
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="rhgb quiet"
    GRUB_DISABLE_RECOVERY="true"

  6. #6
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    7,333
    Linux (Fedora) Firefox 61.0

    Re: kernel not upgrading?

    Quote Originally Posted by billd
    [root@localhost billd]# grep menuentry /boot/grub2/grub.cfg
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    menuentry_id_option=""
    export menuentry_id_option
    menuentry 'Fedora (4.17.11-200.fc28.x86_64) 28 (Twenty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.16.3-301.fc28.x86_64-advanced-1c12ba04-0220-4bea-ae5d-62046377d544' {
    menuentry 'Fedora (4.17.9-200.fc28.x86_64) 28 (Twenty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.16.3-301.fc28.x86_64-advanced-1c12ba04-0220-4bea-ae5d-62046377d544' {
    menuentry 'Fedora (4.16.3-301.fc28.x86_64) 28 (Twenty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.16.3-301.fc28.x86_64-advanced-1c12ba04-0220-4bea-ae5d-62046377d544' {
    menuentry 'Fedora (0-rescue-6ff9b962cb4b4d379e28ed975ac17ca0) 28 (Twenty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-6ff9b962cb4b4d379e28ed975ac17ca0-advanced-1c12ba04-0220-4bea-ae5d-62046377d544' {
    menuentry 'Arch Linux (rolling) (on /dev/sda4)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    submenu 'Advanced options for Arch Linux (rolling) (on /dev/sda4)' $menuentry_id_option 'osprober-gnulinux-advanced-b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    menuentry 'ArchLabs Linux (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    menuentry 'ArchLabs Linux, with Linux linux (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    menuentry 'ArchLabs Linux, with Linux linux (fallback initramfs) (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    menuentry 'Memory Tester (memtest86+) (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/memtest86+/memtest.bin--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {

    and
    [root@localhost billd]# cat /etc/default/grub
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="rhgb quiet"
    GRUB_DISABLE_RECOVERY="true"
    The /etc/default/grub looks normal, would you show the results of :
    Code:
    grep vmlinuz  /boot/grub2/grub.cfg 
    
    and
    
    grubby --default-kernel
    ?

  7. #7
    Join Date
    Apr 2018
    Location
    ok, usa
    Posts
    15
    Linux (Fedora) Firefox 61.0

    Re: kernel not upgrading?

    [root@localhost billd]# grep vmlinuz /boot/grub2/grub.cfg
    linux16 /boot/vmlinuz-4.17.11-200.fc28.x86_64 root=UUID=1c12ba04-0220-4bea-ae5d-62046377d544 ro rhgb quiet LANG=en_US.UTF-8
    linux16 /boot/vmlinuz-4.17.9-200.fc28.x86_64 root=UUID=1c12ba04-0220-4bea-ae5d-62046377d544 ro rhgb quiet LANG=en_US.UTF-8
    linux16 /boot/vmlinuz-4.16.3-301.fc28.x86_64 root=UUID=1c12ba04-0220-4bea-ae5d-62046377d544 ro rhgb quiet LANG=en_US.UTF-8
    linux16 /boot/vmlinuz-0-rescue-6ff9b962cb4b4d379e28ed975ac17ca0 root=UUID=1c12ba04-0220-4bea-ae5d-62046377d544 ro rhgb quiet
    linux16 /boot/vmlinuz-linux root=UUID=b34054ae-ef6e-497c-bd7f-5dcb8b44300c rw quiet
    menuentry 'ArchLabs Linux (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    linux16 /boot/vmlinuz-linux root=UUID=b34054ae-ef6e-497c-bd7f-5dcb8b44300c rw quiet
    menuentry 'ArchLabs Linux, with Linux linux (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    linux16 /boot/vmlinuz-linux root=UUID=b34054ae-ef6e-497c-bd7f-5dcb8b44300c rw quiet
    menuentry 'ArchLabs Linux, with Linux linux (fallback initramfs) (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--b34054ae-ef6e-497c-bd7f-5dcb8b44300c' {
    linux16 /boot/vmlinuz-linux root=UUID=b34054ae-ef6e-497c-bd7f-5dcb8b44300c rw quiet

    and

    grubby --default-kernel
    /boot/vmlinuz-4.17.11-200.fc28.x86_64

    but

    # uname -r
    4.16.3-301.fc28.x86_64

  8. #8
    Join Date
    Jul 2018
    Location
    NSW, Australia
    Posts
    16
    Windows 7 Firefox 61.0

    Re: kernel not upgrading?

    What strikes me is that the $menuentry_id_option for your 3 different fedora kernels in the text you posted from grub.cfg are all identical:
    Code:
    $menuentry_id_option 'gnulinux-4.16.3-301.fc28.x86_64-advanced-1c12ba04-0220-4bea-ae5d-62046377d544'
    I don't know why they are, or what made them that way, but it seems wrong - mine are different, each corresponding to the relevant kernel, which makes sense, but yours all refer to 4.16.3-301, which is what you say you end up running...

  9. #9
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    6,218
    Linux Firefox 61.0

    Re: kernel not upgrading?

    Quote Originally Posted by billd
    so there is another grub booting the machine
    key phrase here, you need to update grub from the other OS providing the bootloader. If you have disabled OS prober that is why it won't detect the change from Fedora's end.

    I use Manjaro's GRUB for the main one with chainloader menu entries instead of OS prober to multiboot between Manjaro, KDE Neon and Linux Mint on one old machine with BIOS. The others with UEFI use rEFInd.

    The chainloaders point towards each individual operating system's own GRUB menu stored on separate partitions (which of course each OS can then update without buggering up any other) and I've set the timeout to zero. That way, I can still access the GRUB menu if need be but normally when I hit enter to boot A N Other OS it does so immediately. I also turned off OS Prober in the other GRUB menus.

    I'll post the setup later as and when I turn the machine on so you can see how it works better than my just describing it here. It's dead simple though and highly effective.

  10. #10
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    7,333
    Linux (Fedora) Firefox 61.0

    Re: kernel not upgrading?

    Quote Originally Posted by Jim D
    What strikes me is that the $menuentry_id_option for your 3 different fedora kernels in the text you posted from grub.cfg are all identical:
    Code:
    $menuentry_id_option 'gnulinux-4.16.3-301.fc28.x86_64-advanced-1c12ba04-0220-4bea-ae5d-62046377d544'
    I don't know why they are, or what made them that way, but it seems wrong - mine are different, each corresponding to the relevant kernel, which makes sense, but yours all refer to 4.16.3-301, which is what you say you end up running...
    I noticed that too but both my working laptops do the same thing and they work fine:

    Code:
    $ grep menuentry grub.cfg 
    
    if [ x"${feature_menuentry_id}" = xy ]; then
      menuentry_id_option="--id"
      menuentry_id_option=""
    export menuentry_id_option
    menuentry 'Fedora (4.17.11-200.fc28.x86_64) 28 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.13.3-300.fc27.x86_64-advanced-1fb2d937-30d8-41ee-9e27-f0533fa08b4b' {
    menuentry 'Fedora (4.17.9-200.fc28.x86_64) 28 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.13.3-300.fc27.x86_64-advanced-1fb2d937-30d8-41ee-9e27-f0533fa08b4b' {
    menuentry 'Fedora (4.17.7-200.fc28.x86_64) 28 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.13.3-300.fc27.x86_64-advanced-1fb2d937-30d8-41ee-9e27-f0533fa08b4b' {
    menuentry 'Fedora 28 Rescue aea640153d954a83859d6477191c9ed8 (4.16.12-300.fc28.x86_64)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.13.3-300.fc27.x86_64-advanced-1fb2d937-30d8-41ee-9e27-f0533fa08b4b' {

  11. #11
    Join Date
    Jul 2018
    Location
    NSW, Australia
    Posts
    16
    Windows 7 Firefox 61.0

    Re: kernel not upgrading?

    Quote Originally Posted by marko
    I noticed that too but both my working laptops do the same thing and they work fine:
    How odd... The one I looked at has:
    Code:
    ...
    menuentry ... ... $menuentry_id_option 'gnulinux-4.17.11-200.fc28.i686-advanced-883deea6-96f1-4279-aaec-4dec04739c3f'
    menuentry ... ... $menuentry_id_option 'gnulinux-4.17.9-200.fc28.i686-advanced-883deea6-96f1-4279-aaec-4dec04739c3f'
    menuentry ... ... $menuentry_id_option 'gnulinux-4.17.7-200.fc28.i686-advanced-883deea6-96f1-4279-aaec-4dec04739c3f'
    menuentry ... ... $menuentry_id_option 'gnulinux-0-rescue-56caa79da9c04b578df13f7074129671-advanced-883deea6-96f1-4279-aaec-4dec04739c3f'
    ...

  12. #12
    Join Date
    Oct 2011
    Posts
    1,825
    Linux Chrome 67.0.3396.87

    Re: kernel not upgrading?

    Instead of chainloading another partition, maybe neater way would be to use `configfile`.

    This is for multiple Fedora Installs, first part is not needed if one of each distro version is used: https://forums.fedoraforum.org/showt...he-same-disk#5

  13. #13
    Join Date
    Jun 2004
    Location
    Maryland, US
    Posts
    7,333
    Linux (Fedora) Firefox 61.0

    Re: kernel not upgrading?

    Quote Originally Posted by Jim D
    How odd... The one I looked at has:
    Code:
    ...
    menuentry ... ... $menuentry_id_option 'gnulinux-4.17.11-200.fc28.i686-advanced-883deea6-96f1-4279-aaec-4dec04739c3f'
    menuentry ... ... $menuentry_id_option 'gnulinux-4.17.9-200.fc28.i686-advanced-883deea6-96f1-4279-aaec-4dec04739c3f'
    menuentry ... ... $menuentry_id_option 'gnulinux-4.17.7-200.fc28.i686-advanced-883deea6-96f1-4279-aaec-4dec04739c3f'
    menuentry ... ... $menuentry_id_option 'gnulinux-0-rescue-56caa79da9c04b578df13f7074129671-advanced-883deea6-96f1-4279-aaec-4dec04739c3f'
    ...
    I manually ran
    grub2-mkconfig -o /boot/grub2/grub.cfg

    Code:
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.17.11-200.fc28.x86_64
    Found initrd image: /boot/initramfs-4.17.11-200.fc28.x86_64.img
    Found linux image: /boot/vmlinuz-4.17.9-200.fc28.x86_64
    Found initrd image: /boot/initramfs-4.17.9-200.fc28.x86_64.img
    Found linux image: /boot/vmlinuz-4.17.7-200.fc28.x86_64
    Found initrd image: /boot/initramfs-4.17.7-200.fc28.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-aea640153d954a83859d6477191c9ed8
    Found initrd image: /boot/initramfs-0-rescue-aea640153d954a83859d6477191c9ed8.img
    done
    now it shows

    grep menuentry grub.cfg

    Code:
    if [ x"${feature_menuentry_id}" = xy ]; then
      menuentry_id_option="--id"
      menuentry_id_option=""
    export menuentry_id_option
    menuentry 'Fedora (4.17.11-200.fc28.x86_64) 28 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.17.11-200.fc28.x86_64-advanced-1fb2d937-30d8-41ee-9e27-f0533fa08b4b' {
    menuentry 'Fedora (4.17.9-200.fc28.x86_64) 28 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.17.9-200.fc28.x86_64-advanced-1fb2d937-30d8-41ee-9e27-f0533fa08b4b' {
    menuentry 'Fedora (4.17.7-200.fc28.x86_64) 28 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.17.7-200.fc28.x86_64-advanced-1fb2d937-30d8-41ee-9e27-f0533fa08b4b' {
    menuentry 'Fedora (0-rescue-aea640153d954a83859d6477191c9ed8) 28 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-aea640153d954a83859d6477191c9ed8-advanced-1fb2d937-30d8-41ee-9e27-f0533fa08b4b' {

  14. #14
    Join Date
    Jul 2018
    Location
    NSW, Australia
    Posts
    16
    Windows 7 Firefox 61.0

    Re: kernel not upgrading?

    Quote Originally Posted by marko
    I manually ran
    grub2-mkconfig -o /boot/grub2/grub.cfg
    now it shows
    Ah, well I have that aliased to 'update-grub', and I do run that periodically, after tinkering with my custom entries in /etc/grub.d/40_custom etc, so if dnf kernel installs don't run grub2-mkconfig -o /boot/grub2/grub.cfg , which I don't think they do (they use grubby/scripts, or something), that would explain the difference, I guess...

  15. #15
    Join Date
    Apr 2018
    Location
    ok, usa
    Posts
    15
    Linux (Fedora) Firefox 61.0

    Re: kernel not upgrading?

    That would be great; I'd appreciate the opportunity to see your setup file as i know i need to do something different from what I'm now doing, but am kinda stuck. I've only tried chainloading once, several years ago, to get bsd to boot along with some linux distros. As i recall it worked for awhile then "broke."

    Interesting you chose Manjaro's GRUB. Is that your main distro on that machine, a secondary distro, or do you just find it better/easier to work with? I've simply installed one distro after another replacing the GRUB in MBR with the last one each time. I liked Manjaro Budgie but got rid of it because Fedora would no longer boot with its GRUB.

    At the time i first wrote this i had Calculate (Gentoo-based & OpenRC) GRUB booting my machine. I updated that GRUB with no change in my Fedora kernel version. Since then my laptop unexpectedly shut down during an ArchLabs update so that i could no longer boot that OS. I used the occasion to reinstall AL and put its GRUB as default. There is still no change in my Fedora kernel version. uname -r remains at 4.15.xxx?

    Someone suggested i should be doing all this in EUFI and GPT? Might that be the issue? Theoretically the 3 distros I'm using should accomodate that setup, but I've actually had more problems installing as each one seems to have its own quirks.

    Thanks to you and everyone for advice!

Similar Threads

  1. FC4 upgrading kernel from 14 to 17
    By spillemw in forum EOL (End Of Life) Versions
    Replies: 1
    Last Post: 12th November 2006, 03:36 PM
  2. Upgrading Kernel in FC2
    By NiallCon in forum EOL (End Of Life) Versions
    Replies: 8
    Last Post: 31st August 2005, 09:46 AM
  3. Kernel panic after upgrading the FC 3 kernel
    By Spelter in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 27th June 2005, 03:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •