]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
sandbox: Slight optimization
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 Jan 2025 11:22:02 +0000 (12:22 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 Jan 2025 12:19:50 +0000 (13:19 +0100)
mkosi/sandbox.py

index 158acc78a5d950ace551e2e28f96b96d04a2bc49..5fd5bf2fc7445ab928dbdbbe846a4774bf5a63c3 100755 (executable)
@@ -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)