Skip to content

Disable decompression of target in sysupdate #35571

Closed

Description

@sorenisanerd

Component

systemd-sysupdate

Is your feature request related to a problem? Please describe

I use sd-sysupdate to pull partition images as well as kernel/initrd. The problem is with the initrd. The salient parts of the transfer definition:

[Source]
Type=url-file
[email protected]

[Target]
Type=regular-file
Path=/foobar
PathRelativeTo=boot
MatchPattern=initrd.img-@v

When writing my initrd to $BOOT, sd-pull identifies that the source is compressed and unconditionally decompresses it.

Describe the solution you'd like

A Decompress= option in the [Target] would be great. Setting it to auto would correspond to the current behavior. Setting it to a specific compression algorithm like, say, gzip would force an attempt to decompress with gzip, erring out if this decompression fails. Setting it to none would prevent any decompression.

Describe alternatives you've considered

Silly workarounds like embedding the initrd in a tarball or gzipping the already gzipped initrd.

The systemd version you checked that didn't have the feature you are asking for

No response

Activity

  1. added
    RFE 🎁
    on Dec 11, 2024
  2. poettering commented on Dec 12, 2024

    @poettering
    Member

    indeed, that would make a ton of sense.

  3. self-assigned this
    on Jan 12, 2025
  4. added 15 commits that reference this issue on Oct 28, 2026
    28a642c
    1b3480a
    b390074
    7f1d0fd
    328e856
    afe36ed
    3ff56e3
    fd3748c
    e84c196
    52ee9d5
    c056c77
    4c4d605
    0fb3a04
    c547c83
    b3edc70
  5. added a commit that references this issue on Nov 5, 2026
    27281f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

RFE 🎁sysupdate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions