[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-fai
Subject:    Re: make-fai-nfsroot patch
From:       Björn Torkelsson <torkel () pdc ! kth ! se>
Date:       2003-04-02 8:09:34
[Download RAW message or body]

On Wed, 2003-04-02 at 10:06, Björn Torkelsson wrote:
> Hi,
> 
> A small patch to make-fai-nfsroot for only creating setups for bootp or
> dhcp (or both). The patch also adds a new optional option in fai.conf,
> FAI_BOOT. If not FAI_BOOT is not defined both bootp and dhcp will be
> setup.

Oops, sorry. The patch contained a few more things than intended. Here
is the correct patch.



["nfsroot.01.patch" (nfsroot.01.patch)]

Index: scripts/make-fai-nfsroot
===================================================================
RCS file: /cvs/debian-boot/fai/scripts/make-fai-nfsroot,v
retrieving revision 1.123
diff -u -r1.123 make-fai-nfsroot
--- scripts/make-fai-nfsroot	27 Mar 2003 16:40:21 -0000	1.123
+++ scripts/make-fai-nfsroot	2 Apr 2003 07:59:36 -0000
@@ -363,9 +379,24 @@
     # create tftp boot images
     call_with_stamp install_kernel_nfsroot
 
-    # setup for both DHCP and BOOTP
-    call_with_stamp setup_dhcp
-    call_with_stamp setup_bootp
+    # setup for DHCP, BOOTP or both
+    if [ "x$FAI_BOOT" == "x" ]; then
+    	FAI_BOOT="dhcp bootp"
+    fi
+    
+    for bootopt in $FAI_BOOT; do
+    	case $bootopt in
+    		dhcp|DHCP)      
+			call_with_stamp setup_dhcp
+			;;
+    		bootp|BOOTP)      
+			call_with_stamp setup_bootp
+			;;
+		*)
+			echo "Unknown boot option"
+			;;
+    	esac
+    done
 else
     echo "Kernel package $KERNELPACKAGE not found."
     echo "No install kernel installed in /boot/fai."


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic