You are not logged in.

#1 2021-07-29 08:54:00

losipai
Member
Registered: 2021-07-29
Posts: 8

[SOLVED] No boot option with systemd-boot

My Arch boot option doesn't show up in the EFI boot manager (systemd-boot). I only get "Reboot into firmware interface".

I'm mounting the EFI partition at /mnt/efi and binding esp/EFI/arch to /mnt/boot.
fstab:

# /dev/nvme0n1p2
UUID=742c...d43    /    ext4     rw,relatime    0   1

# /dev/nvme0n1p1 LABEL=SYSTEM
UUID=D2B8-C58D      /efi     vfat       rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0  2

# /mnt/efi/EFI/arch
/mnt/efi/EFI/arch      /boot       none      rw,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0  0

When mounted this way /mnt/boot contains

amd-ucode.img
initramfs-linux-fallback.img
initramfs-linux.img
vmlinuz-linux

/mnt/efi/loader/loader.conf contains

default arch.conf

And /mnt/efi/loader/entries/arch.conf (using spaces, not tabs):

title   Arch Linux
linux  /vmlinuz-linux
initrd  /amd-ucode.img
initrd  /initramfs-linux.img
options root=UUID=742c...d43 rw

The root partition UUID in fstab and arch.conf matches the one in /dev/disk/by-uuid/.

I have rerun bootctl install and tried to install using efibootmgr.

Last edited by losipai (2021-07-29 09:14:17)

Offline

#2 2021-07-29 08:57:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,417

Re: [SOLVED] No boot option with systemd-boot

The loader entry paths are relative to the ESP root, as you are doing a bind mount you'd need to use

linux  /EFI/arch/vmlinuz-linux
initrd  /EFI/arch/amd-ucode.img
initrd  /EFI/arch/initramfs-linux.img

Online

#3 2021-07-29 09:07:11

losipai
Member
Registered: 2021-07-29
Posts: 8

Re: [SOLVED] No boot option with systemd-boot

Oh I see!
Finally it works. You're awesome! I've been stuck here for 1-2 hours. Thank you so much.

Offline

#4 2021-07-29 09:12:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,417

Re: [SOLVED] No boot option with systemd-boot

Also sidenote, you probably want to reference /efi/EFI/arch in your last mount line in your fstab and generally use the notation mentioned in: https://wiki.archlinux.org/title/EFI_sy … bind_mount

If you consider this [SOLVED] please edit the title in your first post and prepend it so that people know that there's no issue left but a potential solution to be found.

Oh and welcome to the Arch BBS smile

Online

#5 2021-07-29 16:59:27

losipai
Member
Registered: 2021-07-29
Posts: 8

Re: [SOLVED] No boot option with systemd-boot

Thank you smile
Yes the EFI line in fstab wasn't quite right either.

Offline

Board footer

Powered by FluxBB