You are not logged in.

#1 Yesterday 20:50:09

renegat
Member
From: Europe
Registered: 2012-12-28
Posts: 97

[Solved] Install systemd-boot bootloader from within arch-chroot

Since when is is made impossible to install the systemd-boot bootloader using 'bootctl install' from inside arch-chroot?!

Until now I only had to boot the UEFI archiso image, mount the partitions of my fresh install 'root' to /mnt and the EFI-Partition to /mnt/boot and type 'bootctl install'. Done!

But now suddenly the needed boot-entry 'Linux Boot Manager' is not created. You'll get:

"Not booted with EFI or running in a container, skipping EFI variable modifications"

Everything is UEFI - the archiso booted and the fresh archlinux installation!

How do I make bootctl install the "EFI variable modifications" and create the linux boot-loader entry?

The systemd-boot wiki page tells:

In the entire article esp denotes the mountpoint of the EFI system partition and boot denotes the mountpoint of the optional XBOOTLDR partition.
It is assumed that you have chrooted to the system's mount point.

The installation guide states explicit to install the bootloader from within chroot - which is now impossible in case of systemd-boot:

3.2 chroot
3.8 Boot loader
'Choose and install a Linux-capable boot loader.'
4. Reboot
'Exit the chroot environment by typing exit or pressing Ctrl+d.'

Last edited by renegat (Today 10:05:50)

Offline

#2 Today 06:16:01

correctmost
Member
Registered: 2024-01-20
Posts: 19

Re: [Solved] Install systemd-boot bootloader from within arch-chroot

The systemd-boot wiki page has this note:

bootctl refrains from operating on UEFI variables/boot entries when running in pid namespace, which is the case for arch-chroot(8)'s non-systemd mode. To create the boot entry in the chroot environment, use arch-chroot -S instead.

Related bug report: https://github.com/systemd/systemd/issues/39002

Offline

#3 Today 10:04:30

renegat
Member
From: Europe
Registered: 2012-12-28
Posts: 97

Re: [Solved] Install systemd-boot bootloader from within arch-chroot

Thank you correctmost for your insight.

The command 'arch-chroot -S /mnt' gave me just an error about 'invalid option' as I had booted with archiso 2025.08!

Using archiso 2025.10 and everything works like before.

Offline

Board footer

Powered by FluxBB