]> git.ipfire.org Git - pakfire.git/commitdiff
mount: Don't mount /tmp in container
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jul 2022 17:31:16 +0000 (17:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jul 2022 17:31:16 +0000 (17:31 +0000)
If /tmp is a ramdisk, any temporary files written during the build
process will be lost between stages. That is rather unintuitive and we
might use excess memory.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/mount.c

index 6627eab6e43cebfa9692d0eb03a342b60e62fcf9..b0194b19c37fed6ac62462e9bc7a84cbcd59a9a5 100644 (file)
@@ -64,9 +64,6 @@ static const struct pakfire_mountpoint {
        { "pakfire_tmpfs", "run",          "tmpfs", MS_NOSUID|MS_NOEXEC|MS_NODEV,
                "mode=755,size=4m,nr_inodes=1k", },
 
-       // Create a new /tmp
-       { "pakfire_tmpfs", "tmp",          "tmpfs", MS_NOSUID|MS_NODEV, "mode=755", },
-
        // The end
        { NULL },
 };