diff options
author | Agustin Henze <tin@sluc.org.ar> | 2013-02-14 18:53:23 -0300 |
---|---|---|
committer | Junichi Uekawa <dancer@netfort.gr.jp> | 2013-02-28 07:09:13 +0900 |
commit | 9fea2eddf4841b35c78e01adc6a4eddbc4109db8 (patch) | |
tree | 229154d5eeb15c3ca7e74004552cbfd42bfc8b23 /pbuilder-modules | |
parent | dea054ac1c5a270e2042bb6403fbc774c301a91f (diff) | |
download | pbuilder-9fea2eddf4841b35c78e01adc6a4eddbc4109db8.tar pbuilder-9fea2eddf4841b35c78e01adc6a4eddbc4109db8.tar.gz |
Added support for shared memory mounting point (closes: #700591)
Diffstat (limited to 'pbuilder-modules')
-rw-r--r-- | pbuilder-modules | 11 |
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 |