Bug#1122883: systemd-boot: fails to install when EFI partition is too small, and breaks dpkg

Amr Ibrahim amribrahim1987 at hotmail.com
Sat Dec 13 18:04:07 GMT 2025


Package: systemd-boot
Version: 259~rc3-1
Severity: important

Dear Maintainer,

Steps:

0. Have a 60 MB EFI partition (/boot/efi)

1. Install systemd-boot, in a terminal:

$ sudo apt install --allow-remove-essential systemd-boot grub-efi-amd64-signed-
.
.
.
Created "/boot/efi/EFI/systemd".
Created "/boot/efi/loader".
Created "/boot/efi/loader/keys".
Created "/boot/efi/loader/entries".
Created "/boot/efi/EFI/Linux".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed" to
"/boot/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi.signed" to
"/boot/efi/EFI/BOOT/BOOTX64.EFI".
Created "/boot/efi/9d247cbf911c42ab8cb1eb53e500748e".
Random seed file /boot/efi/loader/random-seed successfully written (32 bytes).
Created EFI boot entry "Linux Boot Manager".
install: Error writing
'/boot/efi/9d247cbf911c42ab8cb1eb53e500748e/6.17.8+deb14-amd64/initrd.img-6.17.8+deb14-amd64':
No more storage space available on the device
Error: could not copy '/var/tmp/kernel-
install.staging.mVDJmO/initrd.img-6.17.8+deb14-amd64' to
'/boot/efi/9d247cbf911c42ab8cb
1eb53e500748e/6.17.8+deb14-amd64/initrd.img-6.17.8+deb14-amd64'.
/usr/lib/kernel/install.d/90-loaderentry.install failed with exit status 1.
dpkg: Error while processing package systemd-boot (--configure): ‘installed
post-installation script of package systemd-boot’ subprocess returned error
value 1
Triggers for man-db (2.13.1-1) are being processed...
Errors occurred while processing:
 systemd-boot
needrestart is being skipped since dpkg has failed
Error: Sub-process /usr/bin/dpkg returned an error code (1)

-----------------------------------------------------------

3. remove systemd-boot, in a terminal:

$ sudo apt install systemd-boot- grub-efi-amd64-signed
.
.
.

Removing systemd-boot (259~rc3-1) ...
Invalid bootnum value0000
0002
                           ^
dpkg: Error processing package systemd-boot (--remove):
‘installed pre-removal script of package systemd-boot’ subprocess returned
error value 28
dpkg: Too many errors, aborting
Errors occurred while processing:
 systemd-boot
Processing was stopped because too many errors occurred.
needrestart is being skipped since dpkg has failed
Error: Sub-process /usr/bin/dpkg returned an error code (1)

-----------------------------------------------------------

Best,
Amr


-- System Information:
Debian Release: forky/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'testing'), (90, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.17.9+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd-boot depends on:
ii  efibootmgr                                               18-4
ii  libc6                                                    2.42-5
ii  libsystemd-shared                                        259~rc3-1
ii  systemd                                                  259~rc3-1
ii  systemd-boot-efi-amd64-signed [systemd-boot-efi-signed]  259~rc3-1
ii  systemd-boot-tools                                       259~rc3-1

Versions of packages systemd-boot recommends:
ii  shim-signed  1.47+15.8-1

Versions of packages systemd-boot suggests:
pn  systemd-ukify  <none>

-- no debconf information


More information about the Pkg-systemd-maintainers mailing list