From 561aacb3b83f3307f71fffbd5d42267bcc3e85e5 Mon Sep 17 00:00:00 2001 From: radu Date: Wed, 8 Mar 2006 18:10:07 +0000 Subject: [PATCH] 2006-03-08 18:10:07 by radu cat instead of copy resolv.conf to preserve contents if resolvconf is installed (#355910) --- etc/hook.d/60-copy-host-files | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/hook.d/60-copy-host-files b/etc/hook.d/60-copy-host-files index bcd9562..9308c37 100755 --- a/etc/hook.d/60-copy-host-files +++ b/etc/hook.d/60-copy-host-files @@ -5,13 +5,15 @@ # # Steve # -- -# $Id: 60-copy-host-files,v 1.7 2006-02-18 12:23:24 steve Exp $ +# $Id: 60-copy-host-files,v 1.8 2006-03-08 18:10:07 radu Exp $ prefix=$1 -cp /etc/resolv.conf ${prefix}/etc/ +# Compatibility with resolvconf (#355910) +cat /etc/resolv.conf > ${prefix}/etc/resolv.conf + cp /etc/passwd ${prefix}/etc/ cp /etc/shadow ${prefix}/etc/ cp /etc/group ${prefix}/etc/