From: Michal Suchanek Date: Tue, 17 May 2011 16:40:01 +0000 (+0200) Subject: Copy resolv.conf to live system root (Closes: #627178). X-Git-Tag: debian/3.0_a17-1~2 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=822bdbf4f203761cfc76cb720ff55350688c39d4;p=live-boot-grml.git Copy resolv.conf to live system root (Closes: #627178). --- diff --git a/scripts/live b/scripts/live index 2afbb69..76be7ae 100755 --- a/scripts/live +++ b/scripts/live @@ -1942,6 +1942,13 @@ mountroot () log_end_msg fi + if [ -f /etc/resolv.conf ] && [ ! -s ${rootmnt}/etc/resolv.conf ] + then + log_begin_msg "Copying /etc/resolv.conf to ${rootmnt}/etc/resolv.conf" + cp -v /etc/resolv.conf ${rootmnt}/etc/resolv.conf + log_end_msg + fi + maybe_break live-bottom log_begin_msg "Running /scripts/live-bottom\n"