[PATCH 07/12] derive resolv.conf in lieu of DHCP

Sam Vilain sam at vilain.net
Mon May 1 05:47:21 CEST 2006


resolv.conf needs to be set up seperately with VIRTUAL build - make it
a prepareapt action

---

=== examples/simple/hooks/prepareapt.VSCHILD
==================================================================
--- examples/simple/hooks/prepareapt.VSCHILD	(revision 8127)
+++ examples/simple/hooks/prepareapt.VSCHILD	(revision 8128)
@@ -0,0 +1,8 @@
+if [ ! -f $target/etc/resolv.conf ]
+then
+    if ! fcopy /etc/resolv.conf
+    then
+        echo "Using /etc/resolv.conf from install server"
+        cp /etc/resolv.conf-installserver $target/etc/resolv.conf
+    fi
+fi

Property changes on: examples/simple/hooks/prepareapt.VSCHILD
___________________________________________________________________
Name: svn:executable
 +*



More information about the linux-fai mailing list