]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Mount over passwd and related files from host 1432/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 14 Apr 2023 08:36:22 +0000 (10:36 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 15 Apr 2023 17:37:41 +0000 (19:37 +0200)
commit1296bb230af992434d8407b2d303e78224763270
tree00ccaf77eb7ec73bf643645fad4bb8e2c8626362
parent7efe16a7c00142f0964233e7401d0daada8d8fbe
Mount over passwd and related files from host

Package managers have the annoying quirk that they use the user
and group information from the host system instead of the user and
group information from the chroot. As a workaround, in
run_with_apivfs(), let's overmount the files from the host with the
ones from the root if they exist.

Let's also always install a distribution in 2 steps. First, we install
the package that provides passwd. Then, we install the rest of the
packages, during which passwd and related files will be overmounted.
mkosi/__init__.py
mkosi/distributions/arch.py
mkosi/distributions/centos.py
mkosi/distributions/debian.py
mkosi/distributions/fedora.py
mkosi/distributions/gentoo.py
mkosi/distributions/mageia.py
mkosi/distributions/openmandriva.py
mkosi/distributions/opensuse.py
mkosi/run.py