diff options
author | dancer <dancer> | 2002-09-24 14:34:26 +0000 |
---|---|---|
committer | dancer <dancer> | 2002-09-24 14:34:26 +0000 |
commit | 3889bd901932346eda6d0c4fa764d3057437c7bf (patch) | |
tree | 036c6006475d148add88180eb3c3d2ce0ebdd469 /pbuilder-modules | |
parent | a6e0b49ef1f6c4d05ab686b3be72ba893fc5ab80 (diff) | |
download | pbuilder-3889bd901932346eda6d0c4fa764d3057437c7bf.tar pbuilder-3889bd901932346eda6d0c4fa764d3057437c7bf.tar.gz |
* pbuilder-modules (copy_local_configuration): fix the
rules to copy over to work around debootstrap breakage
with handling of symlinks.
Remove the target file prior to copy.
Diffstat (limited to 'pbuilder-modules')
-rw-r--r-- | pbuilder-modules | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pbuilder-modules b/pbuilder-modules index 11a8b6b..e6ca1ae 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -168,7 +168,8 @@ EOF function copy_local_configuration () { echo " -> copying local configuration" for a in hosts hostname resolv.conf; do - cp $( readlink -f /etc/$a ) "$BUILDPLACE/etc/$a"; + rm -f "$BUILDPLACE/etc/$a" + cp $( readlink -f "/etc/$a" ) "$BUILDPLACE/etc/$a"; done } |