It should work without the braces ({}
). I just double-checked on a test system running Arch Linux, and the following worked for me:
menuentry "Test" {
icon \EFI\refind_test\icons\os_arch.png
volume 904404F8-B481-440C-A1E3-11A5A954E601
loader vmlinuz-linux
options "initrd=initramfs-linux.img root=/dev/sda2"
}
Most likely you're specifying the wrong GUID value. Currently, rEFInd supports partition GUID values for this entry, not filesystem UUID values. Also, the GUID must be the unique GUID, not the GUID that's used as a type code. You can learn the GUID value with gdisk
or sgdisk
, as in:
$ sudo sgdisk -i 2 /dev/sda
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: 904404F8-B481-440C-A1E3-11A5A954E601
First sector: 512040 (at 250.0 MiB)
Last sector: 79656926 (at 38.0 GiB)
Partition size: 79144887 sectors (37.7 GiB)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'
Note that the value of the Partition unique GUID
line in this output matches the value I used in my example stanza.
Oh, and the volume
specification should come after any declarations that rely on files on other volumes. In my case, I put it after the icon
line because I loaded an icon from the ESP (the same volume on which rEFInd resides), but before the loader
line that identified the kernel. If you wanted to load an icon from the same volume as the boot loader, the volume
line should come first.
FWIW, and speaking as rEFInd's developer, it's confusions like this that make me advise people to not use manual boot stanzas unless they have a compelling cause. I don't see anything in your example, sasho648, that can't be handled by rEFInd's auto-detection mechanisms, in conjunction with a /boot/refind_linux.conf
file and perhaps any of several ways of setting a specific icon if you don't like what you get by default. In fact, you wouldn't even need /boot/refind_linux.conf
to get pretty close to what you've got, since rEFInd can get the root=
specification from /etc/fstab
if /boot
is a directory on the root (/
) filesystem. Of course, if you simply presented a stripped-down example and you intend to expand on that in some unusual way, that's another matter. For the most part, though, some people -- particularly those who are familiar with manually configuring LILO or GRUB Legacy -- seem to gravitate toward manual boot stanzas unnecessarily. (This isn't a dig or a knock; I fell into the same mental trap when I first forked rEFInd from rEFIt. Then I realized there was a better way to do it and I wrote the auto-detection code.)