summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichal Suchanek <hramrach@centrum.cz>2011-05-17 18:40:01 +0200
committerDaniel Baumann <daniel@debian.org>2011-05-18 19:29:51 +0200
commit822bdbf4f203761cfc76cb720ff55350688c39d4 (patch)
tree3cb9785bc8ea2381d8df053c2132ee378efadf1d /scripts
parent28c8f765c24f4f9f2244045600bbe13c270e9d67 (diff)
downloadlive-boot-822bdbf4f203761cfc76cb720ff55350688c39d4.tar.gz
live-boot-822bdbf4f203761cfc76cb720ff55350688c39d4.zip
Copy resolv.conf to live system root (Closes: #627178).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live7
1 files changed, 7 insertions, 0 deletions
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"