OSInside / kiwi

KIWI - Appliance Builder Next Generation
https://osinside.github.io/kiwi
GNU General Public License v3.0
289 stars 146 forks source link

Support file includes #2595

Closed schaefi closed 1 month ago

schaefi commented 1 month ago

Add <file> directive to incorporate custom files

Usually custom files are managed by placing them as overlay files or archives. However, overlay files must be structured inside of a root/ subdirectory and archive files are binary data. It is therefore not straight forward to just reference one or more files as source files to the image description to be placed into the image. This commit adds a new <file> element which allows to do this.

This Fixes #1953

Conan-Kudo commented 1 month ago

Please add a test for owner and mode setting.

Conan-Kudo commented 1 month ago

Things look good now, can you squash the doc fixes into the main commit, so then I can approve it?

schaefi commented 1 month ago

I found an issue... need to rework the code a bit. Problem is when we set the owner the user has to exist at that time already, which is currently not the case as the users gets created later...

schaefi commented 1 month ago

@Conan-Kudo ok ready for final review now