[cowdancer] 11/11: qemubuilder.c: Use tmpfs for /tmp

James Clarke jrtc27-guest at moszumanska.debian.org
Mon May 2 01:20:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

jrtc27-guest pushed a commit to branch master
in repository cowdancer.

commit d471fa64c13f342f1fcc362cfbc58edabb913852
Author: James Clarke <jrtc27 at jrtc27.com>
Date:   Mon May 2 01:38:37 2016 +0100

    qemubuilder.c: Use tmpfs for /tmp
---
 qemubuilder.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/qemubuilder.c b/qemubuilder.c
index e8e32cd..fbacd37 100755
--- a/qemubuilder.c
+++ b/qemubuilder.c
@@ -680,6 +680,8 @@ static void write_first_stage(FILE *f, const struct pbuilderconfig* pc)
 	  "chmod 01777 /run/lock\n"
 	  "mount -t tmpfs tmpfs /run/lock\n"
 	  "mount -n -o rw,remount / || mount -v -n -o rw,remount /dev/root \n"
+	  "find /tmp -mindepth 1 -maxdepth 1 -print0 | xargs -0 rm -rf --\n"
+	  "mount -t tmpfs tmpfs /tmp\n"
 	  "mkdir /dev/shm\n"
 	  "chmod 01777 /dev/shm\n"
 	  "mount -t tmpfs tmpfs /dev/shm\n"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/cowdancer.git



More information about the Pbuilder-maint mailing list