From eef8b33657d4fcc73c90d9661ac9c088683a2341 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Wed, 28 Mar 2007 08:18:06 +0900 Subject: 391915: Try to warn only if network configuration files are not found on host OS, not error out. --- ChangeLog | 8 ++++++++ debian/changelog | 4 +++- pbuilder-modules | 10 ++++++---- pbuilder-user-mode-linux | 9 +++++++++ 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5d6e860..c020600 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2007-03-28 Junichi Uekawa + * pbuilder-user-mode-linux: make more vivid notes on what is + executed inside the user-mode-linux + + * pbuilder-modules: for pbuilder-user-mode-linux; only warn if + host network configuration files are not available, and assume it + is correct inside the chroot, and give out a W: warning. + From: Paul TBBle Hampson + * debuild-pbuilder.1, pbuilder-uml.conf.5, pbuilder-user-mode-linux.1, pbuilder.8, pbuilderrc.5, pdebuild-user-mode-linux.1, pdebuild.1: 409135: Fix 'SEE ALSO' diff --git a/debian/changelog b/debian/changelog index cf19977..92b38ca 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,8 +9,10 @@ pbuilder (0.165) UNRELEASED; urgency=low (closes: #399484) * Change 'SEE ALSO' spacing from 'pdebuild (1)' => 'pdebuild(1)' to. (closes: #409135) + * Try to warn only if network configuration files are not found on host + OS, not error out. (closes: #391915) - -- Junichi Uekawa Wed, 28 Mar 2007 08:03:15 +0900 + -- Junichi Uekawa Wed, 28 Mar 2007 08:10:09 +0900 pbuilder (0.164) unstable; urgency=low 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 } diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux index 96f3d0d..debd38b 100755 --- a/pbuilder-user-mode-linux +++ b/pbuilder-user-mode-linux @@ -58,6 +58,11 @@ function operate_uml () { cat < ${INSIDE_PBUILDER} #! /bin/bash + +### +### BEGIN CODE EXECUTED INSIDE User-mode-linux +### + ${UML_DEBUGMODE} mount -t proc /proc /proc @@ -145,6 +150,10 @@ fi umount /dev umount ${UML_CHROOT_MOUNTPOINT} /sbin/halt -d -f + +### +### END CODE EXECUTED INSIDE User-mode-linux +### EOF chmod a+x ${INSIDE_PBUILDER} -- cgit v1.2.3