You are not logged in.

#1 2022-10-11 12:23:44

Bednar
Member
Registered: 2015-09-19
Posts: 73

[SOLVED]rEFInd manual stanzas not working - issues replacing GRUB

Hi all,

I made an attempt to replace GRUB with rEFInd but I have so far been unsuccessful in configuring rEFInd to get a list of bootable entries.

First things first my /etc/fstub file:

 # /dev/nvme0n1p5
UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4	/         	ext4      	rw,relatime	0 1

# /dev/nvme0n1p1
UUID=DE67-2CB1      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/nvme0n1p4
# UUID=28fc9739-0b33-4d8b-8a63-4502b3701816	none      	swap      	defaults  	0 0

# /dev/sda SSDS 1TB

UUID=d6ec69f4-1566-4426-aaf2-d449cd1f92a2 /home/bednar/SteamGames ext4      	rw,relatime	0 1

# /dev/sdb External HDD 4TB

#UUID=0810b004-3bba-488d-ab1b-bca216a29970 /home/bednar/External ext4      	rw,relatime	0 1
UUID=1CF6-3CA8                            /home/bednar/External_Media exfat      	defaults,nofail,x-systemd.device-timeout=1ms,noauto,rw,uid=1000 0 1


# /tmp/

tmpfs   /tmp         tmpfs   rw,nodev,nosuid,size=32G          0  0

My boot partition looks as follows:

ls /boot/   

                                                                                                                                                                                                                          
 amd-ucode.img   EFI   grub   initramfs-linux.img   initramfs-linux-lts.img   refind_linux.conf  'System Volume Information'   vmlinuz-linux   vmlinuz-linux-lts

ls /boot/EFI     
                                                                                                                                                                                                                         

Boot  EFI  GRUB  Microsoft  refind  tools

and here are my 2 manual stanzas which don't boot. the screen flashes but then I am booted back to the rEFInd welcome screen:

menuentry "Arch Linux Stable" {
    icon     /EFI/refind/icons/os_arch.png
    loader   /boot/vmlinuz-linux
    initrd   /boot/initramfs-linux.img
    options  "root=UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4 rw noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off amdgpu.ppfeaturemask=0xffffffff initrd=/boot/amd-ucode.img"
    ostype   Linux
}

menuentry "Arch Linux LTS" {
    icon     /EFI/refind/icons/os_arch.png
    loader   /boot/vmlinuz-linux-lts
    initrd   /boot/initramfs-linux-lts.img
    options  "root=UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4 rw noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off amdgpu.ppfeaturemask=0xffffffff initrd=/boot/amd-ucode.img"
    ostype   Linux
}

Any pointers where things could have gone wrong?

Thanks,

Last edited by Bednar (2022-10-11 13:15:00)

Offline

#2 2022-10-11 12:40:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED]rEFInd manual stanzas not working - issues replacing GRUB

Your paths are wrong. See the warning here https://wiki.archlinux.org/title/REFInd … ot_stanzas

Offline

#3 2022-10-11 12:44:58

Bednar
Member
Registered: 2015-09-19
Posts: 73

Re: [SOLVED]rEFInd manual stanzas not working - issues replacing GRUB

thanks. I assume you are referring to this:

loader and initrd paths are relative to the root of volume. If /boot is a separate partition (e.g. the ESP), the loader and initrd paths would be /vmlinuz-linux and /initramfs-linux.img, respectively.

in which case the paths should be as follows:

menuentry "Arch Linux Stable" {
    icon     /EFI/refind/icons/os_arch.png
    loader   /vmlinuz-linux
    initrd     /initramfs-linux.img
    options  "root=UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4 rw noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off amdgpu.ppfeaturemask=0xffffffff initrd=/amd-ucode.img"
    ostype   Linux
}

menuentry "Arch Linux LTS" {
    icon     /EFI/refind/icons/os_arch.png
    loader   /vmlinuz-linux-lts
    initrd     /initramfs-linux-lts.img
    options  "root=UUID=4acd123c-5044-474e-9b76-69fd5fa1fbe4 rw noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off amdgpu.ppfeaturemask=0xffffffff initrd=/amd-ucode.img"
    ostype   Linux
}

correct?

Last edited by Bednar (2022-10-11 12:45:32)

Offline

#4 2022-10-11 13:14:09

Bednar
Member
Registered: 2015-09-19
Posts: 73

Re: [SOLVED]rEFInd manual stanzas not working - issues replacing GRUB

I confirm this has resolved my issues. Thanks, marking as solved.

Offline

#5 2022-10-11 16:27:34

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,360

Re: [SOLVED]rEFInd manual stanzas not working - issues replacing GRUB

Although the path issue has resolved the problem in the title of this thread, and refind will likely continue to work fine for quite some time, I do note that there has been no upstream development in refind for around half  a year, and it is increasingly looking like refind will become unmaintained into the future.  With that in mind, I recently decided to switch from refind to systemd-boot since the latter is being kept updated with new features and any fixes to issues within a reasonable timescale.  So systemd-boot looks like a good boot manager to use into the future.


Mike C

Offline

Board footer

Powered by FluxBB