diff options
Diffstat (limited to 'pbuilder-modules')
-rw-r--r-- | pbuilder-modules | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pbuilder-modules b/pbuilder-modules index 7f7f821..6ca72fa 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -113,6 +113,9 @@ function umountproc () { done } + +# Mount /proc /dev/pts /dev and bind-mount points +# Also create a policy-rc.d script if it doesn't already exist. function mountproc () { if [ "$USEPROC" = "yes" ]; then echo " -> mounting /proc filesystem" @@ -134,6 +137,17 @@ function mountproc () { mkdir -p "$BUILDPLACE/$mnt" mount -obind "$mnt" "$BUILDPLACE/$mnt" done + if [ -f "$BUILDPLACE/usr/sbin/policy-rc.d" ]; then + echo " -> policy-rc.d already exists" + else + echo " -> installing dummy policy-rc.d" + echo "\ +#!/bin/sh + +exit 101 +" > "$BUILDPLACE/usr/sbin/policy-rc.d" + chmod a+x "$BUILDPLACE/usr/sbin/policy-rc.d" + fi } ## function to clean subdirs, use instead of rm -r |