]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Mount over /etc/passwd when building an image and running build script 1923/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 25 Sep 2023 11:57:29 +0000 (13:57 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 25 Sep 2023 12:45:52 +0000 (14:45 +0200)
commit123eb45f54d63f45b9246b8a9702de54c1f9897b
tree6205d91484114dda2efe5c6697887aceec4c4743
parent2a9c0756b29b1b9c569098dd459a40561f73ca72
Mount over /etc/passwd when building an image and running build script

Various tools parse /etc/passwd, so let's make sure it contains the
expected lines when building an image. Also, when running the build
script, mount over /etc/passwd in the image as various build tools
will also query the current user in /etc/passwd (e.g. the kernel's
build script runs "whoami"). Also add a root entry to the /etc/passwd
we generate so both the user running mkosi and root are covered.
mkosi/__init__.py
mkosi/mounts.py
mkosi/state.py