#1120896 systemd-boot fails on upgrade

Package:
systemd-boot
Source:
systemd-boot
Description:
simple UEFI boot manager - tools and services
Submitter:
Gerhard Mack
Date:
2025-11-26 00:17:01 UTC
Severity:
normal
#1120896#5
Date:
2025-11-18 00:39:41 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
I ran apt upgrade on a system with systemd-boot installed

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
I ran apt-upgrade

   * What was the outcome of this action?

Setting up systemd-boot (257.9-1~deb13u1) ...
Skipping "/boot/efi/EFI/systemd/systemd-bootx64.efi", same boot loader version in place already.
Skipping "/boot/efi/EFI/BOOT/BOOTX64.EFI", same boot loader version in place already.
Skipping "/boot/efi/EFI/BOOT/BOOTX64.EFI", same boot loader version in place already.
install: cannot create regular file '/boot/efi/EFI/BOOT/BOOTX64.efi': File exists
dpkg: error processing package systemd-boot (--configure):
 installed systemd-boot package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 systemd-boot
Error: Sub-process /usr/bin/dpkg returned an error code (1)

   * What outcome did you expect instead?
I expected an error free upgrade

#1120896#10
Date:
2025-11-26 00:08:02 UTC
From:
To:
I have an update and workaround. Systemd-boot works if the file is
/boot/efi/EFI/BOOT/BOOTX64.efi but fails if the file is
/boot/efi/EFI/BOOT/BOOTX64.EFI



On my desktop where the update fails:
root@fdesk:/boot/efi/EFI/BOOT# ls -l
-rwx------ 1 root root 124888 Sep  3 14:38 BOOTX64.EFI

The desktop was installed with a fresh debian trixie and converted to
systemd-boot after install.

On my laptop where it succeeded:

root@flt-dell5515:/boot/efi/EFI/BOOT# ls -l
-rwx------ 1 root root 957136 Jul 29 13:40 BOOTX64.efi
-rwx------ 1 root root  87888 May  4  2024 fbx64.efi

The laptop was upgraded from an older vesion of debian to trixie and
then converted to systemd-boot


On the failing system I renamed BOOTX64.EFI to BOOTX64.efi  (cp
BOOTX64.EFI BOOTX64.EFI.tmp ; cp BOOTX64.EFI.tmp BOOTX64.efi)

Now the upgrade succeeds and now I have

root@fdesk:/boot/efi/EFI/BOOT# ls -l
-rwx------ 1 root root 957136 Jul 29 13:40 BOOTX64.efi
-rwx------ 1 root root  87888 May  4  2024 fbx64.efi