From 980fb27ad110bbaf53e1bcf2d5be53d62d986c9a Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Mon, 9 Apr 2018 09:57:43 -0600 Subject: [PATCH] pbuilder-modules: make bind mounts private on Linux Running multiple builders in parallel with ccache enabled results in one builder unmounting the ccache directory of the other builders. Based upon an idea from Philipp Hahn . Closes: #609427 Signed-off-by: Erich E. Hoover --- pbuilder-modules | 1 + 1 file changed, 1 insertion(+) diff --git a/pbuilder-modules b/pbuilder-modules index e67f82e3..e7cad591 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -454,6 +454,7 @@ function mountproc () { mounted[${#mounted[@]}]="$BUILDPLACE/servers" fi MOUNTPARAMS="-obind" + [ "$DEB_BUILD_ARCH_OS" = "linux" ] && MOUNTPARAMS="${MOUNTPARAMS} --make-private" [ "$DEB_BUILD_ARCH_OS" = "kfreebsd" ] && MOUNTPARAMS="-t nullfs" for mnt in $BINDMOUNTS; do mntpoint=${mnt#*:} -- GitLab