Copy /etc/resolv.conf to chroot for class RELEASE
authorMichael Prokop <devnull@localhost>
Sun, 4 Nov 2007 00:43:38 +0000 (01:43 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 4 Nov 2007 00:43:38 +0000 (01:43 +0100)
debian/changelog
etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs

index 66b5b01..ee203b7 100644 (file)
@@ -1,3 +1,10 @@
+grml-live (0.0.8) unstable; urgency=low
+
+  * Copy /etc/resolv.conf to chroot in
+    /etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs
+
+ -- Michael Prokop <mika@grml.org>  Sun, 04 Nov 2007 01:43:06 +0100
+
 grml-live (0.0.7) unstable; urgency=low
 
   The "holidays? what? are you joking?!"-release.
 grml-live (0.0.7) unstable; urgency=low
 
   The "holidays? what? are you joking?!"-release.
index a9bedc4..5aabce6 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Sun Oct 14 21:08:16 CEST 2007 [mika]
+# Latest change: Sun Nov 04 01:42:58 CET 2007 [mika]
 ################################################################################
 
 set -e
 ################################################################################
 
 set -e
@@ -15,6 +15,10 @@ if ifclass RELEASE ; then
   [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
   [ -n "$HOSTNAME" ] || HOSTNAME=grml
 
   [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
   [ -n "$HOSTNAME" ] || HOSTNAME=grml
 
+  if [ -r /etc/resolv.conf ] ; then
+     cat /etc/resolv.conf >> $target/etc/resolv.conf
+  fi
+
   if [ -x $target/usr/sbin/apt-listbugs -a -x $target/usr/bin/apt-show-source ] && \
      [ -x $target/etc/apt/grml/listbugs ] ; then
      for severity in critical grave serious ; do
   if [ -x $target/usr/sbin/apt-listbugs -a -x $target/usr/bin/apt-show-source ] && \
      [ -x $target/etc/apt/grml/listbugs ] ; then
      for severity in critical grave serious ; do