You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running build_sysext to create a sysext image for Flatcar, from line 190 on everything that is not in the /usr folder is deleted. This could potentially be, but not only:
Important udev files
Important configuration files
It would be better to move everything that is now deleted, either into a folder that is packed into the sysext image so it can be put in place when the sysext image is mounted, or it should be put into a tar ball that can then be used to create the configation of the system.
Impact
Things might simply not work because important information is missing.
Environment and steps to reproduce
Set-up: Flatcar
Task: build_sysext in the sdk.
Action(s): Follow the documentation to create a sysext image for any given package and check the content. A nice example is zfs with zfs-kmod. This includes a configuration tree and udev files and everything is lost during the build.
Error: zfs was not working on the end system.
Expected behavior
Important files need to be available, either in the documentation directory in the sysext image or in a seperate tar ball deliverd with the sysext image. Even better would be if it is put in place by the sysext image on installation.
Additional information
Please add any information here that does not fit the above format.
The text was updated successfully, but these errors were encountered:
The main use case of build_sysext is to build OS dependent sysexts (like docker, vendor tools, kmods etc). Contrary to user-supplied sysexts, these need careful integration with the base OS. build_sysext is not meant to be a generic packaging tool; ebuilds built into sysexts with this tool will always need some adoption.
For instance, Flatcar populates /etc at provisioning time, so there needs to be a custom mechanism to account for this. This is what the mangle scripts are for. (For example, here's the script for the containerd sysext: https://github.com/flatcar/scripts/blob/main/build_library/sysext_mangle_containerd-flatcar). This is the right place to align whatever the sysext packages produce with the specifics of Flatcar.
The mechanism provided by mangle scripts make it easy to use stock Gentoo ebuilds (to benefit from upstream version updates etc) and to align the sysexts to Flatcar specifics at the same time.
Description
When running build_sysext to create a sysext image for Flatcar, from line 190 on everything that is not in the /usr folder is deleted. This could potentially be, but not only:
It would be better to move everything that is now deleted, either into a folder that is packed into the sysext image so it can be put in place when the sysext image is mounted, or it should be put into a tar ball that can then be used to create the configation of the system.
Impact
Things might simply not work because important information is missing.
Environment and steps to reproduce
Expected behavior
Important files need to be available, either in the documentation directory in the sysext image or in a seperate tar ball deliverd with the sysext image. Even better would be if it is put in place by the sysext image on installation.
Additional information
Please add any information here that does not fit the above format.
The text was updated successfully, but these errors were encountered: