[cowdancer] 03/06: qemubuilder.c: Mount /run/lock and /dev/shm as tmpfs

James Clarke jrtc27-guest at moszumanska.debian.org
Sun May 1 18:33:34 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 afba1b85344f72024a118e6e0c17aff2be33cd85
Author: James Clarke <jrtc27 at jrtc27.com>
Date:   Sat Apr 30 03:19:06 2016 +0100

    qemubuilder.c: Mount /run/lock and /dev/shm as tmpfs
---
 qemubuilder.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/qemubuilder.c b/qemubuilder.c
index 4c9bdd8..87cf2fb 100755
--- a/qemubuilder.c
+++ b/qemubuilder.c
@@ -845,8 +845,15 @@ int cpbuilder_create(const struct pbuilderconfig* pc)
 	  "echo ' -> qemu-pbuilder first-stage' \n"
 	  "export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\n"
 	  "mount -n /proc /proc -t proc\n"
+	  "ln -s /dev/shm /run/shm\n"
+	  "mkdir /run/lock\n"
+	  "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"
-	  "cp /proc/mounts /etc/mtab\n"
+	  "mkdir /dev/shm\n"
+	  "chmod 01777 /dev/shm\n"
+	  "mount -t tmpfs tmpfs /dev/shm\n"
+	  "ln -s /proc/mounts /etc/mtab\n"
 	  "export PBUILDER_MOUNTPOINT=/var/cache/pbuilder/pbuilder-mnt\n"
 	  "mkdir -p $PBUILDER_MOUNTPOINT\n"
 	  "mount -n -t ext3 /dev/%sb $PBUILDER_MOUNTPOINT \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