Use $target/etc/resolvconf/run/resolv.conf
authorMichael Prokop <devnull@localhost>
Sun, 4 Nov 2007 10:14:25 +0000 (11:14 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 4 Nov 2007 10:14:25 +0000 (11:14 +0100)
etc/grml/fai/config/hooks/instsoft.GRMLBASE
etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs

index 003e16a..63ae67d 100755 (executable)
@@ -17,7 +17,7 @@ if [ "$FAI_ACTION" = "softupdate" ] ; then
    echo "Softupdate of FAI via grml-live running"
 
    if [ -r /etc/resolv.conf ] ; then
-     if [ -r /etc/resolvconf/run/resolv.conf ] ; then
+     if [ -r $target/etc/resolvconf/run/resolv.conf ] ; then
         cat /etc/resolv.conf >> $target/etc/resolvconf/run/resolv.conf
      else
         cat /etc/resolv.conf >> $target/etc/resolv.conf
index 01dbfd2..5143318 100755 (executable)
@@ -16,7 +16,7 @@ if ifclass RELEASE ; then
   [ -n "$HOSTNAME" ] || HOSTNAME=grml
 
   if [ -r /etc/resolv.conf ] ; then
-     if [ -r /etc/resolvconf/run/resolv.conf ] ; then
+     if [ -r $target/etc/resolvconf/run/resolv.conf ] ; then
         cat /etc/resolv.conf >> $target/etc/resolvconf/run/resolv.conf
      else
         cat /etc/resolv.conf >> $target/etc/resolv.conf