You are not logged in.

#1 2025-02-22 20:44:32

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 58

[SOLVED]systemd-boot: Only Reboot into firmware interface option

I installed bootctl with bootctl install, but when I booting only appears reboot into firmware interface option. I have these errors with bootctl:

linux: /boot/efi//vmlinuz-linux-zen (No such file or directory)

initrd: /boot/efi//initramfs-linux-zen.img (No such file or directory)

The problem is apparently because the kernel location, but what I should to do in this case?

/boot/efi/loader/entries/arch.conf

title Arch Linux
linux /vmlinuz-linux-zen
initrd /initramfs-linux-zen.img
options root=UUID=<UUID value> rw

/boot/efi/loader/loader.conf

timeout 10
console-mode max 
editor no
default arch.conf

Last edited by FrancisArcher_60 (2025-02-23 14:02:37)

Offline

#2 2025-02-23 10:25:26

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 714

Re: [SOLVED]systemd-boot: Only Reboot into firmware interface option

Why are you mounting the EFI system partition to /boot/efi instead of /boot?

As stated in Arch boot process#Feature comparison, systemd-boot:

https://wiki.archlinux.org/title/Arch_boot_process#Feature_comparison wrote:

Can only launch binaries from the ESP it is installed to or from the Extended Boot Loader Partition (XBOOTLDR partition) on the same disk.

Those bootctl errors show the issue. There are no such files in the EFI system partition.

Offline

#3 2025-02-23 12:21:04

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 58

Re: [SOLVED]systemd-boot: Only Reboot into firmware interface option

nl6720 wrote:

Why are you mounting the EFI system partition to /boot/efi instead of /boot?

As stated in Arch boot process#Feature comparison, systemd-boot:

https://wiki.archlinux.org/title/Arch_boot_process#Feature_comparison wrote:

Can only launch binaries from the ESP it is installed to or from the Extended Boot Loader Partition (XBOOTLDR partition) on the same disk.

Those bootctl errors show the issue. There are no such files in the EFI system partition.

But first I mount the root partition that have the kernels and efi empty folder in /boot, so I can't to mount it in /boot

And these documentation says that /boot/efi Is a valid mountpoint, and is supported by systemd boot

Last edited by FrancisArcher_60 (2025-02-23 12:51:27)

Offline

#4 2025-02-23 13:12:31

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 714

Re: [SOLVED]systemd-boot: Only Reboot into firmware interface option

FrancisArcher_60 wrote:

But first I mount the root partition that have the kernels and efi empty folder in /boot, so I can't to mount it in /boot

1. Unmount /boot/efi,
2. Delete the empty /boot/efi directory,
3. Move all files from /boot/ to a safe place (another directory),
4. Mount the ESP to /boot,
5. Move the previously backed-up files to /boot/ (which is where the ESP is now mounted).
6. Update your /etc/fstab.

FrancisArcher_60 wrote:

And these documentation says that /boot/efi Is a valid mountpoint, and is supported by systemd boot

Sure, it's "supported", but systemd-boot still requires access to the the kernel and initramfs which by default are in /boot (i.e. not the EFI system partition in your case). Unless you want go through the hassle of https://wiki.archlinux.org/title/EFI_sy … unt_points, I suggest simply mounting the ESP to /boot.

Offline

#5 2025-02-23 14:02:08

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 58

Re: [SOLVED]systemd-boot: Only Reboot into firmware interface option

Fine, thanks it works

Offline

#6 2025-02-23 16:05:54

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 58

Re: [SOLVED]systemd-boot: Only Reboot into firmware interface option

When I exec sudo pacman -Syu after to update all, appears this : Failed to create unit file 'run/systemd/generator/boot.mount' , as It already exists. Duplicate entry in '/etc/fstab'?

This matters? Or Is not important?

Last edited by FrancisArcher_60 (2025-02-23 16:06:35)

Offline

#7 2025-02-25 08:36:50

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 714

Re: [SOLVED]systemd-boot: Only Reboot into firmware interface option

Do you have two entries for /boot in /etc/fstab?

Offline

Board footer

Powered by FluxBB