From: Daan De Meyer Date: Tue, 14 Jan 2025 11:22:02 +0000 (+0100) Subject: sandbox: Slight optimization X-Git-Tag: v25~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1fd74d762da88fcc69057f05a719f449452f396;p=thirdparty%2Fmkosi.git sandbox: Slight optimization --- diff --git a/mkosi/sandbox.py b/mkosi/sandbox.py index 158acc78a..5fd5bf2fc 100755 --- a/mkosi/sandbox.py +++ b/mkosi/sandbox.py @@ -526,7 +526,7 @@ class DevOperation(FSOperation): for node in ("null", "zero", "full", "random", "urandom", "tty", "fuse"): nsrc = joinpath(oldroot, "dev", node) - if not os.path.exists(nsrc) and node == "fuse": + if node == "fuse" and not os.path.exists(nsrc): continue ndst = joinpath(dst, node)