Menu

refind fails to find second kernel

Chris Zim
2016-04-23
2016-04-24
  • Chris Zim

    Chris Zim - 2016-04-23

    refind fails to find second linux kernel. Upon boot, only the 4.4.0-21 is offered but the 3.16.0-34 is omitted.

    Config is as follows:

    refind is the only boot manager stored in the NVRAM of a MacbookPro 8,1:

    efibootmgr -v
    BootCurrent: 0001
    Timeout: 5 seconds
    BootOrder: 0001
    Boot0001* rEFInd Boot Manager HD(1,GPT,00005ae6-4f70-0000-bc56-00008e220000,0x28,0x64000)/File(\EFI\refind\refind_x64.efi)

    There are two linux kernels in the boot subdirectory of the linux partition:

    ll /boot
    total 79265
    -rw-r--r-- 1 root root 1207327 Apr 10 2015 abi-3.16.0-34-generic
    -rw-r--r-- 1 root root 1239577 Apr 19 00:21 abi-4.4.0-21-generic
    -rw-r--r-- 1 root root 171819 Apr 10 2015 config-3.16.0-34-generic
    -rw-r--r-- 1 root root 189412 Apr 19 00:21 config-4.4.0-21-generic
    drwxr-xr-x 6 root root 512 Jan 1 1970 efi
    drwxr-xr-x 6 root root 4096 Apr 22 19:17 grub
    -rw-r--r-- 1 root root 20476880 Aug 31 2015 initrd.img-3.16.0-34-generic
    -rw-r--r-- 1 root root 36515143 Apr 22 18:46 initrd.img-4.4.0-21-generic
    -rw-r--r-- 1 root root 182704 Jan 28 13:44 memtest86+.bin
    -rw-r--r-- 1 root root 184380 Jan 28 13:44 memtest86+.elf
    -rw-r--r-- 1 root root 184840 Jan 28 13:44 memtest86+_multiboot.bin
    -rw-r--r-- 1 root root 3502413 Apr 10 2015 System.map-3.16.0-34-generic
    -rw-r--r-- 1 root root 3853719 Apr 19 00:21 System.map-4.4.0-21-generic
    -rw-r--r-- 1 root root 6412672 Apr 10 2015 vmlinuz-3.16.0-34-generic
    -rw-r--r-- 1 root root 7013968 Apr 19 00:21 vmlinuz-4.4.0-21-generic

    refind.conf is stored in /boot/efi/EFI/refind:

    timeout 20
    showtools shell, gdisk, mok_tool, apple_recovery, reboot, firmware
    scanfor internal,external,optical,manual
    dont_scan_volumes "Recovery HD"
    default_selection 2
    csr_values 77
    menuentry Linux {
    icon EFI/refind/icons/os_linux.png
    volume 904404F8-B481-440C-A1E3-11A5A954E601
    loader bzImage-3.3.0-rc7
    initrd initrd-3.3.0.img
    options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
    disabled
    }
    menuentry Ubuntu {
    loader /EFI/ubuntu/grubx64.efi
    icon /EFI/refind/icons/os_linux.png
    disabled
    }
    menuentry "ELILO" {
    loader \EFI\elilo\elilo.efi
    disabled
    }
    menuentry "Windows 7" {
    loader \EFI\Microsoft\Boot\bootmgfw.efi
    disabled
    }
    menuentry "Windows via shell script" {
    icon \EFI\refind\icons\os_win.png
    loader \EFI\tools\shell.efi
    options "fs0:\EFI\tools\launch_windows.nsh"
    disabled
    }
    menuentry "My Mac OS X" {
    icon \EFI\refind\icons\os_mac.png
    volume "OS X boot"
    loader \System\Library\CoreServices\boot.efi
    disabled
    }

    There's no additional refind_linux.conf in /boot. Refind version is 0.10.2-1.

    Please let me know if more info is needed. Any toughts / hints are greatly appreciated!

     
  • Roderick W. Smith

    I think you're probably running into rEFInd's kernel folding feature. If so, hitting F2 or Insert should show a list of kernels and kernel option sets. If you prefer seeing all your kernels on the main menu, you can edit refind.conf: Uncomment the fold_linux_kernels false line to get the behavior you expect.

     
    • Chris Zim

      Chris Zim - 2016-04-24

      Hi Roderick,

      Thanks for the quick reply! That hit the nail on the head - problem sorted. I came across this config file setting before but I thought the default was "off", so that kernels are not folded by default. Hence my initial posting.

       
  • Roderick W. Smith

    The fold_linux_kernels option is relatively new, so if you used rEFInd in the past, the change may have taken you by surprise. Normally I try to avoid changing the default operation of the program, but I was getting a lot of complaints about the menu being too cluttered, so I thought it best to make folding the default.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.