Skip to content

dracut: initramfs not compressed, somehow #6005

@Artoria2e5

Description

@Artoria2e5

Bug description

/boot/initramfs-6.7.5-aosc-main.img is not a compressed file, despite the intentions of our dracut.conf clearly asking for zstd.

Steps to reproduce

file /boot/initramfs-6.7.5-aosc-main.img says /boot/initramfs-6.7.5-aosc-main.img: ASCII cpio archive (SVR4 with no CRC)

binwalk /boot/initramfs-6.7.5-aosc-main.img reveals that it's actually a bunch of cpios, some carrying xz-compressed firmware, others carrying zst-compressed modules. Surely we can improve the compression somewhat by going solid: don't compress the individual files, compress the whole thing.

Update channel(s)

stable

Package and version

Package: dracut
Status: install ok installed
Section: utils
Installed-Size: 2924
Maintainer: AOSC OS Maintainers <maintainers@aosc.io>
Architecture: amd64
Version: 059-5
Depends: arping (>= 2.20-1), coreutils (>= 9.4), cpio (>= 2.13-5), gawk (>= 5.2.1), kbd (>= 2.5.1), kmod (>= 31), nfs-utils (>= 2.6.2-1), util-linux (>= 2.39.3-1), systemd (>= 1:254.6-3), bash (>= 5.2.21), parallel (>= 20191122), isomd5sum (>= 1.2.3)
Conffiles:
 /etc/dracut.conf 9c12dd66353f9ea3a6e835c8f849d4bc
Description: Generic, modular, cross-distribution initramfs generation tool
X-AOSC-ACBS-Version: 20240207.1
X-AOSC-Commit: 6cc0c6d305
X-AOSC-Packager: AOSC OS Maintainers <maintainers@aosc.io>
X-AOSC-Autobuild4-Version: 4.0.23

While we're at it: dracut has its own opinion on zstd flags when you just write compress=zstd; see https://github.com/dracutdevs/dracut/blob/5d2bda46f4e75e85445ee4d3bd3f68bf966287b9/dracut.sh#L2412C1-L2414C11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions