refind-btrfs icon indicating copy to clipboard operation
refind-btrfs copied to clipboard

Help with manual boot stanza

Open wazlecracker opened this issue 2 years ago • 16 comments

Hello!

I'm on Arch and have installed your tool and can successfully run refind-btrfs, however I can't seem to get the manual boot stanza correct to boot into my system. I can boot into it with the default entry rEFInd generates with its (I think) scanning, but trying to boot the manual entry fails with "invalid loader file!" and I'm not sure what I'm doing wrong.

Stanza:

menuentry "Arch Linux" {
    icon /EFI/refind/icons/os_arch.png
    volume Arch #E2F8E8FB-74BE-154A-BA21-A59938903CBC
    loader /@/boot/vmlinuz-linux
    initrd /@/boot/initramfs-linux.img
    options "root=PARTUUID=e2f8e8fb-74be-154a-ba21-a59938903cbc rw add_efi_memmap rootflags=subvol=@ initrd=@\boot\amd-ucode.img nowatchdog lsm=lockdown,yama,apparmor,bpf"
    submenuentry "Boot - fallback" {
        initrd /@/boot/initramfs-linux-fallback.img
    }
    submenuentry "Boot - terminal" {
        add_options "systemd.unit=multi-user.target"
    }
}

My fstab:

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/         	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=256,subvol=/@	0 0

# /dev/nvme1n1p1
UUID=46D6-555C								/boot/efi 	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/home     	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=257,subvol=/@home	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/root     	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=258,subvol=/@root	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/var/log  	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=259,subvol=/@var-log	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/.swap    	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=260,subvol=/@swap	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/var/crash	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=261,subvol=/@var-crash	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/var/spool	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=262,subvol=/@var-spool	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/var/lib/docker	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=263,subvol=/@var-lib-docker	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/var/lib/containers	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=264,subvol=/@var-lib-containers	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/var/tmp  	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=265,subvol=/@var-tmp	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/var/cache	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=266,subvol=/@var-cache	0 0

# /dev/nvme1n1p2 LABEL=Arch
UUID=7733104b-3bd5-40fa-916f-bd2e30645e52	/var/lib/libvirt/images	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache,subvolid=267,subvol=/@var-lib-libvirt-images	0 0


/.swap/swapfile	none	swap	defaults	0	0

/dev/zram0	none	swap	defaults	0	0

Can you help me figure out what I'm doing wrong here?

wazlecracker avatar Sep 19 '21 03:09 wazlecracker