]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootctl: do not use the EFI path as XBOOTLDR path 40413/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Jan 2026 12:39:46 +0000 (21:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Feb 2026 07:11:33 +0000 (16:11 +0900)
commit07f147d544e53ddadf7b53ba48ea9700ad7e2a03
tree1a571d1b489a1bf0111306c8dee6378eeab2c369
parent9bc1336abd76de206641f81a6c4fef0820f4edaa
bootctl: do not use the EFI path as XBOOTLDR path

When running in a container, EFI and XBOOTLDR partition check is
relaxed, hence /boot may be recognized as both EFI and XBOOTLDR
partition.

Before:
```
$ run0 systemd-nspawn -xD / --private-network --bind=/sys/firmware/efi/efivars --bind=/boot -E SYSTEMD_LOG_LEVEL=debug -- build/bootctl --variables=yes --no-pager -x
Failed to check file system type of "/efi": No such file or directory
Using EFI System Partition at /boot.
Using XBOOTLDR partition at /boot as $BOOT.
/boot
```

After:
```
$ run0 systemd-nspawn -xD / --private-network --bind=/sys/firmware/efi/efivars --bind=/boot -E SYSTEMD_LOG_LEVEL=debug -- build/bootctl --variables=yes -x
Failed to check file system type of "/efi": No such file or directory
Using EFI System Partition at /boot.
Didn't find an XBOOTLDR partition, using the ESP as $BOOT.
/boot
```
src/bootctl/bootctl.c