From: Daan De Meyer Date: Sat, 15 Apr 2023 06:29:04 +0000 (+0200) Subject: Make sure we have the same working directory in run_with_apivfs() X-Git-Tag: v15~253^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c60bd6622a48ba233193b0675dfa08defd92394;p=thirdparty%2Fmkosi.git Make sure we have the same working directory in run_with_apivfs() By default, bubblewrap uses / as the working directory, let's make sure that we remain in the same directory in run_with_apivfs(). --- diff --git a/mkosi/run.py b/mkosi/run.py index ade636ffe..88107d6b5 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -259,6 +259,7 @@ def run_with_apivfs( # Required to make chroot detection via /proc/1/root work properly. "--unshare-pid", "--dev-bind", "/", "/", + "--chdir", Path.cwd(), "--tmpfs", state.root / "run", "--tmpfs", state.root / "tmp", "--proc", state.root / "proc",