problems installing with Sarge debootstrap

martin f krafft madduck at madduck.net
Sat Nov 13 12:36:53 CET 2004


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.

The following patch should fix this reliably and safely and should
work even if debootstrap is fixed. Please include it, Thomas!

--- /tmp/make-fai-nfsroot 2004-11-13 12:19:50.000000000 +0100
+++ /usr/sbin/make-fai-nfsroot  2004-11-13 12:24:08.000000000 +0100
@@ -272,6 +272,9 @@
     echo "$NFSROOT_ETC_HOSTS" >> etc/hosts
     [ -f /etc/apt/preferences ] && cp -v /etc/apt/preferences $NFSROOT/etc/apt
     [ -f $cfdir/preferences ] && cp -v $cfdir/preferences $NFSROOT/etc/apt
+    if [ $(readlink $NFSROOT/etc/resolv.conf) = '/etc/resolvconf/run/resolv.conf' ]; then
+      ln -sf resolv.conf-installserver $NFSROOT/etc/resolv.conf
+    fi
     echo "Upgrading $NFSROOT"
     LC_ALL=C call_verbose call_with_stamp upgrade_nfsroot  
     echo "Adding additional packages to $NFSROOT:"

-- 
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
 
"even a stopped clock gives the right time twice a day."
                                                            -- orbital
-------------- 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/20041113/cb62405c/attachment.bin 


More information about the linux-fai mailing list