]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Replace --tmpfs with --dir for tmpfs directories 3055/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 20 Sep 2024 11:56:09 +0000 (13:56 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 20 Sep 2024 11:57:07 +0000 (13:57 +0200)
The root is already a tmpfs so no need to put separate tmpfs directories
on top of individual directories.

mkosi/run.py

index 4273aeba1259238405a003427b30eb362e4e64ac..261c017a22837af331950673de0cebbdbe721fc0 100644 (file)
@@ -579,7 +579,7 @@ def sandbox_cmd(
                 if tmp:
                     cmdline += ["--bind", tmp, Path("/") / d]
                 else:
-                    cmdline += ["--tmpfs", Path("/") / d]
+                    cmdline += ["--dir", Path("/") / d]
 
         # If we put an overlayfs on /var, and /var/tmp is not in the sandbox tree, make sure /var/tmp is a bind mount
         # of a regular empty directory instead of the overlays so tools like systemd-repart can use the underlying