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 migrated via RAUC hooks between rootfs A and rootfs B.
Files in the /srv data partition.
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.
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:
/srv
data partition.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
andgroup
files are based on the files found in the 23.11 stable release bundles and images found on ourdownloads.linux-automation.com
server, giving us good backward/forward compatibility. The configuration is rather straight forward and follows the yocto manual entry aboutUSERADDEXTENSION
.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 maketacos
instead 🌮, I hope you like it.