problems installing with Sarge debootstrap

martin f krafft madduck at madduck.net
Sun Nov 14 20:45:20 CET 2004


also sprach martin f krafft <madduck at madduck.net> [2004.11.13.1236 +0100]:
> Sarge's debootstrap creates /etc/resolv.conf as a dead link to
> /etc/resolvconf/run/resolv.conf, without installing resolvconf.
> Please see #272257 for more information.

Similarly, the nfsroot is affected. The following patch fixes that
in a very similar way:

--- /tmp/subroutines-linux  2004-11-14 20:39:33.000000000 +0100
+++ /usr/share/fai/subroutines-linux  2004-11-14 20:43:27.000000000 +0100
@@ -92,6 +92,11 @@
     # now we can copy fstab
     [ -f $fs ] && mv $fs $fs.old
     cp -p $LOGDIR/$fstab $fs
+    if [[ $(readlink $FAI_ROOT/etc/resolv.conf) = '/etc/resolvconf/run/resolv.conf' ]]; then
+      rm -f $FAI_ROOT/etc/resolv.conf
+      cat /etc/resolv.conf > $FAI_ROOT/etc/resolv.conf
+      chmod 644 $FAI_ROOT/etc/resolv.conf
+    fi
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 task_mirror() {

Please apply!


-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net at madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: madduck.bogus at madduck.net
 
before he died, rabbi zusya said: "in the world to come they will not
ask me, 'why were you not moses?' they will ask me, 'why were you not
zusya?'"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20041114/e59e6457/attachment.bin 


More information about the linux-fai mailing list