FedoraForum.org - Fedora Support Forums and Community
Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2010
    Location
    The Netherlands
    Age
    46
    Posts
    255

    grub default kernel does not update

    After installation of a new kernel, e.g. kernel-4.16.13-200.fc27.x86_64 ...
    Code:
    [root@E7440-DELL boris]# dnf history info 477
    Transaction ID : 477
    Begin time     : Wed 06 Jun 2018 01:53:09 PM CEST
    Begin rpmdb    : 3580:38f530fc3ac572d9a813112d265730199b4ef6c6
    End time       : Wed 06 Jun 2018 01:54:17 PM CEST (68 seconds)
    End rpmdb      : 3580:358fc75598628371df659bc5f52afa99f7ff9905
    User           : Boris Ljevar <boris>
    Return-Code    : Success
    Command Line   : update
    Transaction performed with:
        Installed     dnf-2.7.5-2.fc27.noarch  @updates
        Installed     rpm-4.14.1-1.fc27.x86_64 @updates
    Packages Altered:
        Upgraded hplip-common-3.18.4-2.fc27.x86_64            @updates
        Upgrade               3.18.4-3.fc27.x86_64            @updates
        Upgraded hplip-libs-3.18.4-2.fc27.x86_64              @updates
        Upgrade             3.18.4-3.fc27.x86_64              @updates
        Erase    kernel-4.13.16-100.fc25.x86_64               @updates/25
        Install  kernel-4.16.13-200.fc27.x86_64               @updates
        Erase    kernel-core-4.13.16-100.fc25.x86_64          @updates/25
        Install  kernel-core-4.16.13-200.fc27.x86_64          @updates
        Erase    kernel-debug-devel-4.16.7-100.fc26.x86_64    @updates/26
        Install  kernel-debug-devel-4.16.13-200.fc27.x86_64   @updates
        Upgraded kernel-headers-4.16.12-200.fc27.x86_64       @updates
        Upgrade                 4.16.13-200.fc27.x86_64       @updates
        Erase    kernel-modules-4.13.16-100.fc25.x86_64       @updates/25
        Install  kernel-modules-4.16.13-200.fc27.x86_64       @updates
        Erase    kernel-modules-extra-4.13.16-100.fc25.x86_64 @updates/25
        Install  kernel-modules-extra-4.16.13-200.fc27.x86_64 @updates
        Upgraded libsane-hpaio-3.18.4-2.fc27.x86_64           @updates
        Upgrade                3.18.4-3.fc27.x86_64           @updates
    Scriptlet output:
       1 cat: write error: Broken pipe

    My system still boots the previous kernel, currently 4.16.12-200.fc27.x86_64 ...
    Code:
    [root@E7440-DELL boris]# uname -a
    Linux E7440-DELL 4.16.12-200.fc27.x86_64 #1 SMP Fri May 25 21:10:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

    Apparently, no changes were made to GRUB config after installing a new kernel ...
    Code:
    [root@E7440-DELL boris]# grubby --default-kernel
    /boot/vmlinuz-4.16.12-200.fc27.x86_64
    [root@E7440-DELL boris]# grubby --info=ALL
    index=0
    kernel=/boot/vmlinuz-4.16.12-200.fc27.x86_64
    args="ro radeon.audio=1 rhgb quiet kaslr "
    root=UUID=5b40483e-f637-46d8-bc82-3ee3cad1a9e9
    initrd=/boot/initramfs-4.16.12-200.fc27.x86_64.img
    title=Fedora (4.16.12-200.fc27.x86_64) 27 (Workstation Edition)
    index=1
    kernel=/boot/vmlinuz-4.16.11-100.fc26.x86_64
    args="ro radeon.audio=1 rhgb quiet kaslr "
    root=UUID=5b40483e-f637-46d8-bc82-3ee3cad1a9e9
    initrd=/boot/initramfs-4.16.11-100.fc26.x86_64.img
    title=Fedora (4.16.11-100.fc26.x86_64) 27 (Workstation Edition)
    index=2
    kernel=/boot/vmlinuz-4.13.16-100.fc25.x86_64
    args="ro radeon.audio=1 rhgb quiet kaslr "
    root=UUID=5b40483e-f637-46d8-bc82-3ee3cad1a9e9
    initrd=/boot/initramfs-4.13.16-100.fc25.x86_64.img
    title=Fedora (4.13.16-100.fc25.x86_64) 27 (Workstation Edition)
    index=3
    kernel=/boot/vmlinuz-0-rescue-2b19506cad024a8da961a27bc6613d79
    args="ro radeon.audio=1 rhgb quiet kaslr "
    root=UUID=5b40483e-f637-46d8-bc82-3ee3cad1a9e9
    initrd=/boot/initramfs-0-rescue-2b19506cad024a8da961a27bc6613d79.img
    title=Fedora (0-rescue-2b19506cad024a8da961a27bc6613d79) 27 (Workstation Edition)
    index=4
    non linux entry
    index=5
    non linux entry
    index=6
    non linux entry

    In order to fix this, I must always manually rebuild /boot/grub2/grub.cfg as follows:
    Code:
    [root@E7440-DELL grub2]# mv grub.cfg grub.cfg.old
    [root@E7440-DELL grub2]# grub2-mkconfig -o grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.16.13-200.fc27.x86_64
    Found initrd image: /boot/initramfs-4.16.13-200.fc27.x86_64.img
    Found linux image: /boot/vmlinuz-4.16.12-200.fc27.x86_64
    Found initrd image: /boot/initramfs-4.16.12-200.fc27.x86_64.img
    Found linux image: /boot/vmlinuz-4.16.11-100.fc26.x86_64
    Found initrd image: /boot/initramfs-4.16.11-100.fc26.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-2b19506cad024a8da961a27bc6613d79
    Found initrd image: /boot/initramfs-0-rescue-2b19506cad024a8da961a27bc6613d79.img
    Found Windows 7 on /dev/sda2
    done

    After running grub2-mkconfig the GRUB config is updated ...
    Code:
    [root@E7440-DELL grub2]# grubby --default-kernel
    /boot/vmlinuz-4.16.13-200.fc27.x86_64
    [root@E7440-DELL grub2]# grubby --info=ALL
    index=0
    kernel=/boot/vmlinuz-4.16.13-200.fc27.x86_64
    args="ro radeon.audio=1 rhgb quiet kaslr "
    root=UUID=5b40483e-f637-46d8-bc82-3ee3cad1a9e9
    initrd=/boot/initramfs-4.16.13-200.fc27.x86_64.img
    title=Fedora (4.16.13-200.fc27.x86_64) 27 (Workstation Edition)
    index=1
    kernel=/boot/vmlinuz-4.16.12-200.fc27.x86_64
    args="ro radeon.audio=1 rhgb quiet kaslr "
    root=UUID=5b40483e-f637-46d8-bc82-3ee3cad1a9e9
    initrd=/boot/initramfs-4.16.12-200.fc27.x86_64.img
    title=Fedora (4.16.12-200.fc27.x86_64) 27 (Workstation Edition)
    index=2
    kernel=/boot/vmlinuz-4.16.11-100.fc26.x86_64
    args="ro radeon.audio=1 rhgb quiet kaslr "
    root=UUID=5b40483e-f637-46d8-bc82-3ee3cad1a9e9
    initrd=/boot/initramfs-4.16.11-100.fc26.x86_64.img
    title=Fedora (4.16.11-100.fc26.x86_64) 27 (Workstation Edition)
    index=3
    kernel=/boot/vmlinuz-0-rescue-2b19506cad024a8da961a27bc6613d79
    args="ro radeon.audio=1 rhgb quiet kaslr "
    root=UUID=5b40483e-f637-46d8-bc82-3ee3cad1a9e9
    initrd=/boot/initramfs-0-rescue-2b19506cad024a8da961a27bc6613d79.img
    title=Fedora (0-rescue-2b19506cad024a8da961a27bc6613d79) 27 (Workstation Edition)
    index=4
    non linux entry
    index=5
    non linux entry
    index=6
    non linux entry

    This is not an isolated issue. Ever since the system-upgrade fc25 to fc26, GRUB config suddenly stopped updating. I would prefer not to manually rebuild /boot/grub2/grub.cfg each time a new kernel is installed.
    Is there a way to fix this?
    Last edited by blnlx; 6th June 2018 at 01:41 PM.
    Fedora25.GNOME@Dell_Latitude_E7440
    Fedora24.MATE@HP_Compaq_DC7100

Similar Threads

  1. Replies: 3
    Last Post: 6th November 2017, 06:58 PM

Posting Permissions

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