aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules22
1 files changed, 22 insertions, 0 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
new file mode 100644
index 0000000..7601738
--- /dev/null
+++ b/pbuilder-modules
@@ -0,0 +1,22 @@
+#! /bin/bash
+# common modules for pbuilder.
+
+function umountproc () {
+ if [ "$USEPROC" = "yes" ]; then
+ echo " -> unmounting proc"
+ umount "$BUILDPLACE/proc"
+ fi
+}
+
+function mountproc () {
+ if [ "$USEPROC" = "yes" ]; then
+ echo " -> mounting proc"
+ mkdir -p $BUILDPLACE/proc
+ mount -t proc /proc "$BUILDPLACE/proc"
+ fi
+}
+
+
+#required for some packages to install...
+export LANG=C
+export LC_ALL=C