charles17 wrote:Not even make install or copying manually?
"make install" of course. But I don't do anything to tell reFind about it. Not like editing grub.conf
us3rnotfound wrote:What kind of magic makes your new kernel available in /boot?
That's refind's job, to find kernels.
us3rnotfound wrote:All I've got in /boot/efi/EFI/refind/refind.conf is
Code:
timeout 20
That's why the kernel can't find the boot partition.
Originally I only had the second line in the example I showed (a real world example). Then I added the first line, to boot by PARTUUID instead od /dev/sda2. I added the third line for optional direct boot to CD. Those lines are menu choices. If you do nothing, the first choice is executed at the end of the timeout. If you have only one choice, no need for a timeout. Originally I only had the second line because I only had one drive, so it
had to be the right one, like if you only have one ethernet port it has to be eth0. Now, it's just a piece of cruft I leave in as an example. The third line may be cruft as well, but it's a handy way to boot directly to CD/DVD without reFind searching for kernels and coming up dry. Here's my other UEFI machine:
Code: Select all
# grep -v ^# /boot/refind_linux.conf
"Boot by PARTUUID" "net.ifnames=0 root=PARTUUID=280acabd-75cb-41f6-8322-a428a78bdf2a"
"Boot by /dev/sdXn" "root=/dev/sda2 net.ifnames=0
The part in quotes is just a prompt.
Try it with your own PARTUUID and any text you want. The net.ifnames=0 is to get rid of those godawful persistent names. it's optional. The vga= in the other example is also optional. The could also be embedded in the kernel and in fact are:
Code: Select all
~ # zgrep CMDLINE /proc/config.gz
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="net.ifnames=0 vga=0x365"
# CONFIG_CMDLINE_OVERRIDE is not set
# CONFIG_BLK_CMDLINE_PARSER is not set
# CONFIG_CMDLINE_PARTITION is not set
CONFIG_FB_CMDLINE=y
Anything your bootloader adds overrides the kernel setting. I think that's the meaning of CONFIG_CMDLINE_BOOL=y, check with menuconfig Help.