Skip to content

extras: improve file to not export too much - #2722

Merged
supakeen merged 1 commit into
osbuild:mainfrom
supakeen:fixup-files-extra
Sep 26, 2026
Merged

supakeen merged 1 commit into
osbuild:mainfrom
supakeen:fixup-files-extra

Conversation

@supakeen

@supakeen supakeen commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

I made a booboo in the file extra that I missed the first time around. If we're exporting without compression then the file pipeline actually contains both the disk image and the exported file inside its tree and thus both get output.

Implement the same idiom that is used in sysexts with an intermediary pipeline.

In the future we could get rid of this if we teach the copy or mounts to work on inputs from other pipelines, but it's not the worst thing in existence.

Before:

€ make build
WARNING: using experimental --force-defs-dir from "/home/user/src/github.com/teamsbc/artifacts/data/defs"
[-] Image building step
[8 / 8] Pipeline file-uki [----------------------------------------------------------------------------------------------------------------------->] 100.00%
[2 / 2] Stage org.osbuild.copy [------------------------------------------------------------------------------------------------------------------>] 100.00%
Message: Finished pipeline file-uki
Image build successful: teamsbc-46-makalu-virt-x86_64/teamsbc-46-makalu-virt-x86_64.raw.xz
Image build successful: teamsbc-46-makalu-virt-x86_64/teamsbc-46-makalu-virt-uki-x86_64.img
Image build successful: teamsbc-46-makalu-virt-x86_64/teamsbc-46-makalu-virt-uki-x86_64.efi

After:

€ make build
WARNING: using experimental --force-defs-dir from "/home/user/src/github.com/teamsbc/artifacts/data/defs"
[-] Image building step
[8 / 8] Pipeline file-uki [----------------------------------------------------------------------------------------------------------------------->] 100.00%
[2 / 2] Stage org.osbuild.copy [------------------------------------------------------------------------------------------------------------------>] 100.00%
Message: Finished pipeline file-uki
Image build successful: teamsbc-46-makalu-virt-x86_64/teamsbc-46-makalu-virt-x86_64.raw.xz
Image build successful: teamsbc-46-makalu-virt-x86_64/teamsbc-46-makalu-virt-uki-x86_64.efi

I made a booboo in the `file` extra that I missed the first time around.
If we're exporting *without* compression then the file pipeline actually
contains both the disk image *and* the exported file inside its tree and
thus both get output.

Implement the same idiom that is used in sysexts with an intermediary
pipeline.

In the future we could get rid of this if we teach the `copy` or
`mount`s to work on inputs from other pipelines, but it's not the worst
thing in existence.

Signed-off-by: Simon de Vlieger <[email protected]>
@supakeen
supakeen requested a review from a team as a code owner September 26, 2026 12:48
@supakeen
supakeen merged commit 84d6cb8 into osbuild:main Sep 26, 2026
56 of 58 checks passed
@supakeen
supakeen deleted the fixup-files-extra branch September 26, 2026 15:40
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.

1 participant