Skip to content

extras: files - #2711

Merged
supakeen merged 3 commits into
osbuild:mainfrom
supakeen:file-extra
Sep 25, 2026
Merged

supakeen merged 3 commits into
osbuild:mainfrom
supakeen:file-extra

Conversation

@supakeen

Copy link
Copy Markdown
Member

In #2700 I introduced the concept of "extras". We started with partition and sysext. This PR adds another extra file which allows to copy out a single file from the assembled disk image. We run this very late because we want to run after the image is in its final state (bootloader has been installed, systemd-boot installs during the image pipeline).

The (first) concrete application is that this allows to copy out the UKI built by kernel-install in earlier pipelines which is to be used in #2662 for systemd-sysupdate but it's applicable to any file that wants to be shipped separately-yet-together.

New `FileImage` pipeline to extract a single file from a disk image. To
be used as an "extra". We run this late in the build (after the disk
image has been assembled) so that the bootloader (systemd-boot runs in
the image pipeline) has done its thing.

That's done specifically so we can copy out UKIs that are created by
`kernel-install`.

Signed-off-by: Simon de Vlieger <[email protected]>
Implement File extras support. Similar to all the other extras.

Signed-off-by: Simon de Vlieger <[email protected]>
Add the "file" extra type to the distro definitions loader and image
type. This allows image types to declare files to extract from the
assembled disk image via the extras YAML:

```
extras:
  files:
    grubenv:
      path: /boot/efi/EFI/redhat/grub.env
      compression: xz
```

Signed-off-by: Simon de Vlieger <[email protected]>

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me. I'm not totally clear on what all these extra extra commits aere supposed to be doing though, they are missing documentation and context for someone who hasn't been part of the design discussions.

@supakeen
supakeen added this pull request to the merge queue Sep 25, 2026
@supakeen

supakeen commented Sep 25, 2026 •

Copy link
Copy Markdown
Member Author

Looks ok to me. I'm not totally clear on what all these extra extra commits aere supposed to be doing though, they are missing documentation and context for someone who hasn't been part of the design discussions.

There's (a bit of) backstory here: #2662 and here #2632 and we've discussed it during the office hours; but we're not recording the office hours and we really should. I'll make sure we do in the future.

I'll also be doing a presentation on all of this soon 🙂

Merged via the queue into osbuild:main with commit a4939c4 Sep 25, 2026
54 checks passed
@supakeen
supakeen deleted the file-extra branch September 25, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants