linux-automation / meta-lxatac

Build your own LXA TAC images and bundles
MIT License
5 stars 15 forks source link

meta-lxatac-software: add custom distro config and static uid/gid config #81

Closed hnez closed 7 months ago

hnez commented 7 months ago

By default user and group IDs are assigned based on recipe build order. This works as long as no files are shared between different builds. In our case we have two cases where files are shared between builds:

Files in one of these categories that are not owned by root may have the wrong owner uid and gid based on the order recipes were built in for the respective bundle.

Fix that by assigning static user ids and group ids. The passwd and group files are based on the files found in the 23.11 stable release bundles and images found on our downloads.linux-automation.com server, giving us good backward/forward compatibility. The configuration is rather straight forward and follows the yocto manual entry about USERADDEXTENSION.

The uid/gid config is neither a machine-specifc or local configuration and instead belongs into a distro config. Up until now we just used the ptx distro from meta-ptx.

Since the vanilla 🍦 ptx distro no longer worked for us I decided to make tacos instead 🌮, I hope you like it.