• Bug#1107592: unmkinitramfs: cpio failed on closed output pipe

    From Benjamin Drung@1:229/2 to All on Tue Jun 10 14:10:01 2025
    XPost: linux.debian.bugs.dist
    From: bdrung@debian.org

    Package: initramfs-tools
    Version: 0.148.1
    Severity: normal
    X-Debbugs-Cc: bdrung@debian.org

    Dear Maintainer,

    The new unmkinitramfs written in C has a regression. In case the output
    pipe of lsinitramfs is closed prematurely, you might get an error
    message printed:

    ```
    unmkinitramfs: cpio failed
    ```

    I saw this failure in the qemu-busybox autopkgtest on Ubuntu, but were
    able to reproduce it on Debian. Example:

    ```
    $ lsinitramfs /boot/initrd.img-6.12.32-amd64 | grep -wq chroot
    unmkinitramfs: cpio failed
    ```

    --
    Benjamin Drung
    Debian & Ubuntu Developer

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)