Copy resolv.conf to live system root (Closes: #627178).
authorMichal Suchanek <hramrach@centrum.cz>
Tue, 17 May 2011 16:40:01 +0000 (18:40 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 18 May 2011 17:29:51 +0000 (19:29 +0200)
scripts/live

index 2afbb69..76be7ae 100755 (executable)
@@ -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"