aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules11
1 files changed, 11 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