
Doc' ... you don't need to update the config at all, rEFInd will autodetect any efi executable that has an efi suffix and offer it as a boot option (with the most recent as the first/default). It will also detect initramfs based on the continuity between the kernel name and that of the initramfs.cpio.gz (you could also, as I do, build in the intramfs into the kernel). If its a question of providing kernel parameters then a 'refind_linux.conf' in the root of /boot (or wherever you store the kernels) can be used for the same purpose ...The Doctor wrote:Since I want the flexibility given by specifying a config without the hassle of updating it for each kernel I have implemented a solution using soflinks.
Code: Select all
# print -rl /boot/*
/boot/efi
/boot/refind_linux.conf
/boot/vmlinuz-3.10.29-geek.efi
/boot/vmlinuz-3.10.37-geek.efi
/boot/vmlinuz-3.13.11-ck.efi
# egrep -v '(^#|^$)' /boot/efi/refind/refind.conf
timeout 5
hideui banner
use_graphics_for linux
showtools shell, reboot, exit
dont_scan_dirs efi/grub2
# cat /boot/refind_linux.conf
"Boot softlevel default" "ro nopat threadirqs acpi_backlight=vendor rootfstype=ext4 luks enc_root=/dev/sda2 lvm root=/dev/mapper/vg-root swsusp resume=/dev/mapper/vg-swap"
"Boot softlevel online" "ro nopat threadirqs acpi_backlight=vendor rootfstype=ext4 luks enc_root=/dev/sda2 lvm root=/dev/mapper/vg-root swsusp resume=/dev/mapper/vg-swap softlevel=online"
"Boot softlevel single" "ro nopat threadirqs acpi_backlight=vendor rootfstype=ext4 luks enc_root=/dev/sda2 lvm root=/dev/mapper/vg-root swsusp resume=/dev/mapper/vg-swap softlevel=single"
True, but the way it does it is kind of annoying. What I did was write a general Gentoo entry with a rescue option so the boot menu looks nicer. In theory it should have worked the same way, just copy the new kernel to /boot and update a few symbolic link and it would work out of the box and preserve a versioned naming scheme for the kernels.khayyam wrote: Doc' ... you don't need to update the config at all, rEFInd will autodetect any efi executable that has an efi suffix and offer it as a boot option (with the most recent as the first/default).

Doc' ... yeah, that does seem a little weird. Rod Smith (the rEFInd author) is often reading here so perhaps he can offer an answer, it may be a bug.The Doctor wrote:Honestly, I am mostly curious why refined can't follow symbolic link fails the first time but works if redone after a failed boot attempted.


Code: Select all
/boot
/boot/vmlinuz-3.13.3
/boot/vmlinuz-3.13.2
/boot/older
/boot/older/vmlinuz-3.11.2
/boot/older/vmlinuz-3.12.2
/boot/older/vmlinuz-3.12.3
Code: Select all
menuentry "Additional kernels" {
icon \EFI\refind\icons\os_refind.png
loader \EFI\refind\refind_x64.efi
options "-c refind_extra.conf"
}