From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Fri, 22 Dec 2023 12:06:11 +0000 (+0100) Subject: bubblewrap: add /etc/static symlink X-Git-Tag: v20~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2211%2Fhead;p=thirdparty%2Fmkosi.git bubblewrap: add /etc/static symlink On NixOS, ssl certificates are stored as follows: /etc/ssl/certs/ca-bundle.crt -> /etc/static/ssl/certs/ca-bundle.crt /etc/static -> /nix/store/-etc/etc Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- diff --git a/mkosi/bubblewrap.py b/mkosi/bubblewrap.py index 7c1550bca..853b4232e 100644 --- a/mkosi/bubblewrap.py +++ b/mkosi/bubblewrap.py @@ -105,6 +105,9 @@ def bwrap( if p.is_symlink(): cmdline += ["--symlink", p.readlink(), p] + if Path("/etc/static").is_symlink(): + cmdline += ["--symlink", Path("/etc/static").readlink(), "/etc/static"] + if network: cmdline += ["--bind", "/etc/resolv.conf", "/etc/resolv.conf"]