-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Hi,
We are building a custom distribution for an x86-64 platform, where our target image requires the torizon-docker.bb recipe, while our distro conf requires common-torizon.inc and sota.conf.inc. We also have a custom installer recipe in place so that we can use bootable USB drives to install the OS image to our test targets, but this explicitly avoids including any Torizon-specific content as it's not meant to do anything but install the image of interest to the hardware.
We're interested in using OSTree and the stateless system functionality for updates, however we've run into issues with the /etc/group, /etc/passwd files seemingly not being populated correctly (or being overwritten during the build) sometimes - this is not consistent, but seems to have something to do with the state of tmp/ and/or sstate-cache/ from previous builds. What ends up happening is that the group/passwd files get deployed without any of the user/group details except for the torizon user itself, which means things like dbus and systemd don't come up correctly, preventing the majority of the system from functioning.
I went looking in the git blame/git logs for some details on this but didn't find much about nss_files or stateless_system that was helpful to explain the interactions here.
Is this a phenomenon that's been observed in the past? If so, how can we mitigate it? And if not, what info do we need to provide for further assistance?