]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Bind mount /etc from tools tree into relaxed sandbox 3749/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 29 May 2025 14:20:54 +0000 (16:20 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 15 Jun 2025 20:12:44 +0000 (21:12 +0100)
commitd8d73d1dcc6d55b05834dd1b6c84c390e55666e0
tree29f8d9169cd244ddf56d7a79ddf845352bb71998
parent82341ae8bb31c00faa8423984f296219d2f1b2f0
Bind mount /etc from tools tree into relaxed sandbox

Config from /etc often references stuff in /usr. Two examples I've
encountered are shell config from /etc/profile and dnf5 blowing up
when there's plugin configuration in /etc without the corresponding
plugin being installed.

To work around such issues, let's use /etc from the tools tree in the
relaxed sandbox instead of /etc from the host. This also saves the user
from having to create directories in their host's /etc to be able to use
mkosi sandbox.
action.yaml
mkosi/__init__.py
mkosi/mounts.py
mkosi/resources/mkosi-tools/mkosi.skeleton/etc/resolv.conf [new file with mode: 0644]
mkosi/run.py
tests/test_initrd.py