debian-forge/osbuild/util
Martin Sehnoutka 8b0ea15817 stages: add org.osbuild.ostree.passwd
This stage takes /usr/lib/passwd and /usr/etc/passwd from an OSTree
checkout, merges them into one file, and store it as /etc/passwd in the
buildroot.

It does the same for /etc/group.

The reason for doing this is that there is an issue with unstable UIDs
and GIDs when creating OSTree commits from scratch. When there is a
package that creates a system user or a system group, it can change the
UID and GID of users and groups that are created later.

This is not a problem in traditional deployments because already created
users and groups never change their UIDs and GIDs, but with OSTree we
recreate the files from scratch and then replace the previous one so it
can actually change.

By copying the files to the build root before doing any other
operations, we can make sure that the UIDs and GIDs of already existing
users and groups won't change.

Co-author: Christian Kellner <christian@kellner.me>
2021-08-17 13:53:00 +02:00
..
__init__.py util: mark as module 2020-04-21 17:00:04 +02:00
checksum.py util: add new checksum related utilities 2021-05-12 14:26:16 +02:00
ctx.py util/ctx: extract suppress_oserror() 2020-05-11 18:05:12 +02:00
jsoncomm.py util/jsoncomm: add send_and_recv helper 2021-06-09 18:37:47 +01:00
linux.py util/linux: add helper for BLK_IOC_FLSBUF ioctl 2021-08-13 17:35:32 +02:00
lorax.py utils/lorax: add lorax template related helpers 2021-02-19 14:42:32 +00:00
lvm2.py utils: add lvm2 utility module 2021-08-13 12:20:54 +02:00
osrelease.py util/osrelease: add default os-release paths 2020-10-21 11:13:28 +02:00
ostree.py stages: add org.osbuild.ostree.passwd 2021-08-17 13:53:00 +02:00
path.py util/path: add path checker helper function 2021-06-28 19:07:42 +02:00
rhsm.py util/rhsm: Implement a fallback to the previous behaviour 2021-07-21 14:38:18 +02:00
rmrf.py util/rmrf: use immutable helpers 2020-04-21 14:46:02 +02:00
selinux.py util/selinux: add gefilecon helper 2020-06-15 20:36:48 +02:00
types.py util: add types module defining PathLike type 2020-07-27 12:50:38 +01:00