aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pbuilder-modules11
-rw-r--r--pbuilderrc1
2 files changed, 12 insertions, 0 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index c98fe04..3756615 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -221,6 +221,9 @@ function umountproc () {
if [ "$USEDEVFS" = "yes" ]; then
umount_one "dev"
fi
+ if [ "$USEDEVSHM" = "yes" ]; then
+ umount_one "$SHM_PATH"
+ fi
if [ "$USEPROC" = "yes" ]; then
if [ "$DEB_BUILD_ARCH_OS" = "linux" ] && [ -e $BUILDPLACE/proc/sys/fs/binfmt_misc/status ]; then
umount_one "proc/sys/fs/binfmt_misc"
@@ -253,6 +256,14 @@ function mountproc () {
mount -t devfs /dev "$BUILDPLACE/dev"
mounted[${#mounted[@]}]="$BUILDPLACE/dev"
fi
+ if [ "$DEB_BUILD_ARCH_OS" = "linux" ] && [ "$USEDEVSHM" = "yes" ]; then
+ SHM_PATH="run/shm"
+ [ ! -d "/$SHM_PATH" ] && SHM_PATH="dev/shm"
+ log "I: mounting /$SHM_PATH filesystem"
+ mkdir -p $BUILDPLACE/$SHM_PATH || true
+ mount -t tmpfs tmpfs "$BUILDPLACE/$SHM_PATH"
+ mounted[${#mounted[@]}]="$BUILDPLACE/$SHM_PATH"
+ fi
if [ "$DEB_BUILD_ARCH_OS" = "linux" ] && [ "$USEDEVPTS" = "yes" ]; then
log "I: mounting /dev/pts filesystem"
mkdir -p $BUILDPLACE/dev/pts || true
diff --git a/pbuilderrc b/pbuilderrc
index 8462728..0c1bd4b 100644
--- a/pbuilderrc
+++ b/pbuilderrc
@@ -10,6 +10,7 @@ MIRRORSITE=http://cdn.debian.net/debian
#export http_proxy=http://your-proxy:8080/
USEPROC=yes
USEDEVPTS=yes
+USEDEVSHM=yes
USEDEVFS=no
BUILDRESULT=/var/cache/pbuilder/result/