From: Daan De Meyer Date: Mon, 24 Apr 2023 16:23:30 +0000 (+0200) Subject: Fix FileExistsError exception X-Git-Tag: v15~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54f80aa8f687ed4d1759f0a7329c64c3f0ff70ad;p=thirdparty%2Fmkosi.git Fix FileExistsError exception --- diff --git a/mkosi/run.py b/mkosi/run.py index 9522801df..6be3bb028 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -352,6 +352,7 @@ def run_workspace_command( resolve = root.joinpath("etc/resolv.conf") tmp = Path(tempfile.NamedTemporaryFile(delete=False).name) + tmp.unlink() if network: # Bubblewrap does not mount over symlinks and /etc/resolv.conf might be a symlink. Deal with this by