mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
systemd-boot might be installed in /EFI/BOOT under more names than just /EFI/BOOT/BOOTX64.efi. The prime example is shim which loads its second stage binary from /EFI/BOOT/grubx64.efi. To accomodate use cases where systemd-boot is installed as /EFI/BOOT/grubx64.efi, let's always check the entire /EFI/BOOT directory for binaries that identify as systemd-boot and list/update/remove those as well. Let's keep this somewhat generic though and not install ourselves as grubx64.efi since that would mean having to check for shim which is a can of worms we probably don't want to open.