From: Daan De Meyer Date: Mon, 9 Oct 2023 12:41:51 +0000 (+0200) Subject: Add extra search paths to $PATH when booting X-Git-Tag: v19~89^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3df2fb368497dd01664c67ad92d61938ed19403b;p=thirdparty%2Fmkosi.git Add extra search paths to $PATH when booting --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index eec08000a..4474f8ed5 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2545,7 +2545,9 @@ def run_verb(args: MkosiArgs, presets: Sequence[MkosiConfig]) -> None: # We want to drop privileges after mounting the last tools tree, but to unmount it we still need # privileges. To avoid a permission error, let's not unmount the final tools tree, since we'll exit # right after (and we're in a mount namespace so the /usr mount disappears when we exit) - with mount_usr(last.tools_tree, umount=False), mount_passwd(name, uid, gid, umount=False): + with mount_usr(last.tools_tree, umount=False),\ + mount_passwd(name, uid, gid, umount=False),\ + prepend_to_environ_path(last): check_tools(args, last)