[PATCH 06/12] Make the default classes better for VSCHILD - no GRUB, FAIBASE

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


The "defaults" are not very good if building VSCHILD hosts.  Modify
accordingly.
---
=== examples/simple/class/50-host-classes
==================================================================
--- examples/simple/class/50-host-classes	(revision 8126)
+++ examples/simple/class/50-host-classes	(revision 8127)
@@ -12,7 +12,9 @@
 	echo "FAIBASE DHCPC DEMO XFREE GNOME";;
     atom*)
 	echo "FAIBASE DHCPC DEMO" ;;
-# from http://faiwiki.informatik.uni-koeln.de/index.php/User:BrianShowalter/Using_FAI_to_install_Linux-vservers
+
+# For building VServer hosts and children
+
     vshost)
         echo "FAIBASE VSHOST VSCOMMON";;
     vschild1)
@@ -23,8 +25,13 @@
         echo "VSCHILD VSCOMMON POSTFIX" && exit 0;;
 
     *)
-	echo "FAIBASE DHCPC" ;;
+	if ifclass VSCHILD
+	then
+	    echo "VSCOMMON";
+        else
+	    echo "FAIBASE DHCPC" 
+        fi;;
 esac
 
-(ifclass I386 || ifclass AMD64) && echo GRUB 
+(ifclass I386 || ifclass AMD64) && ( ifclass VSCHILD || echo GRUB )
 exit 0



More information about the linux-fai mailing list