Skip to content

Add enableFakechroot option for image generation#284

Open
HolmDev wants to merge 1 commit intohercules-ci:mainfrom
HolmDev:add-fakechroot-option
Open

Add enableFakechroot option for image generation#284
HolmDev wants to merge 1 commit intohercules-ci:mainfrom
HolmDev:add-fakechroot-option

Conversation

@HolmDev
Copy link
Copy Markdown

@HolmDev HolmDev commented Dec 30, 2025

To begin with, very nice project! I can't state how much I appreciate not having to write YAML.

This is quite a minor edit, but I found it quite peculiar that enableFakechroot from dockerTools.{build,stream}LayeredImage wasn't available in the image options. This kept me from running commands such as mkdir -p /var/lib in fakeRootCommands when using some attribute sets for images that I have previously used when using dockerTools.streamLayeredImage.

This PR simply adds that option and passes it to buildOrStreamLayeredImage.

If there is a obvious reason for its absence which I have not realized, I apologize. I am quite new to the Nix ecosystem.


PS. This would of course (sort of) be addressed in #92 since that would enable us to simply use our image archive derivations from dockerTools.streamLayeredImage, etc, instead of adding each option from them.

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