• Bug#1109832: systemd-boot: breaks dracut -f

    From David =?iso-8859-1?Q?H=E4rdeman?=@21:1/5 to All on Thu Jul 24 17:20:01 2025
    Package: systemd-boot
    Version: 257.7-1
    Severity: normal

    Dear Maintainer,

    after switching to systemd-boot, a plain "dracut -f" invocation to build
    a new initrd doesn't work anymore:

    $ dracut -f
    dracut[I]: Executing: /usr/bin/dracut -f
    ...
    dracut[I]: *** Creating image file '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd.tmp' ***
    dracut[I]: Using auto-determined compression method 'pigz'
    dracut[I]: *** Creating initramfs image file '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd.tmp' done ***
    dracut[I]: *** Moving image file '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd.tmp' to '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd' ***
    dracut[I]: *** Moving image file '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd.tmp' to '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd' done ***
    Cannot build depthcharge images when no board is specified.
    Not booted with depthcharge, so ignoring that.
    Updating kernel version 6.12.38+deb13-amd64 in systemd-boot...
    install: '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd' and '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd' are the same file
    Error: could not copy '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd' to '/boot/efi/bdc11e9baee74faba4e9574412dc049b/6.12.38+deb13-amd64/initrd'.
    /usr/lib/kernel/install.d/90-loaderentry.install failed with exit status 1. run-parts: /etc/initramfs/post-update.d//systemd-boot exited with return code 1

    I'm not 100% sure, but I believe that dracut -f used to work before
    switching to systemd-boot.


    -- System Information:
    Debian Release: 13.0
    APT prefers unstable
    APT policy: (500, 'unstable'), (102, 'experimental')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.12.38+deb13-amd64 (SMP w/16 CPU threads; PREEMPT)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
    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 libc6 2.41-10
    ii libsystemd-shared 257.7-1
    ii systemd 257.7-1
    ii systemd-boot-efi-amd64-signed [systemd-boot-efi-signed] 257.7-1
    ii systemd-boot-tools 257.7-1

    Versions of packages systemd-boot recommends:
    ii efibootmgr 18-2
    ii shim-signed 1.46+15.8-1

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

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)