aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules10
1 files changed, 6 insertions, 4 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index 93880fa..dd135d8 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -329,10 +329,12 @@ function copy_local_configuration () {
echo " -> copying local configuration"
for a in hosts hostname resolv.conf; do
rm -f "$BUILDPLACE/etc/$a"
- if [ ! -f "/etc/$a" ]; then
- echo "E: /etc/$a does not exist, your setup is insane. fix it" >&2
- fi
- cp $( readlink -f "/etc/$a" ) "$BUILDPLACE/etc/$a";
+ if [ -f "/etc/$a" ]; then
+ rm -f "$BUILDPLACE/etc/$a"
+ cp $( readlink -f "/etc/$a" ) "$BUILDPLACE/etc/$a";
+ else
+ echo "W: No local /etc/$a to copy, relying on $BUILDPLACE/etc/$a to be correct" >&2
+ fi
done
}