[Fai-commit] r6345 - in trunk/examples/simple: class scripts/CENTOS

Michael Goetze mgoetze-guest at alioth.debian.org
Thu Apr 14 18:04:28 UTC 2011


Author: mgoetze-guest
Date: 2011-04-14 18:04:24 +0000 (Thu, 14 Apr 2011)
New Revision: 6345

Added:
   trunk/examples/simple/class/DEBIAN.var
   trunk/examples/simple/scripts/CENTOS/50-misc
Modified:
   trunk/examples/simple/class/CENTOS.var
   trunk/examples/simple/class/FAIBASE.var
Log:
simple-examples: split up some variables into DEBIAN and CENTOS and implement them on CENTOS

Modified: trunk/examples/simple/class/CENTOS.var
===================================================================
--- trunk/examples/simple/class/CENTOS.var	2011-04-14 17:42:06 UTC (rev 6344)
+++ trunk/examples/simple/class/CENTOS.var	2011-04-14 18:04:24 UTC (rev 6345)
@@ -1 +1,6 @@
+CONSOLEFONT=latarcyrheb-sun16
+KEYMAP=us
+DEFAULTLOCALE=en_US.UTF-8
+SUPPORTEDLOCALE=en_US.UTF-8:en_US:en
+
 FAI_RAMDISKS="$target/var/lib/rpm $target/var/cache/yum"

Added: trunk/examples/simple/class/DEBIAN.var
===================================================================
--- trunk/examples/simple/class/DEBIAN.var	                        (rev 0)
+++ trunk/examples/simple/class/DEBIAN.var	2011-04-14 18:04:24 UTC (rev 6345)
@@ -0,0 +1,9 @@
+CONSOLEFONT=
+KEYMAP=us-latin1
+
+# MODULESLIST contains modules that will be loaded by the new system,
+# not during installation these modules will be written to /etc/modules
+# If you need a module during installation, add it to $kernelmodules
+# in 20-hwdetect.source. But discover should do most of this job
+MODULESLIST="usbkbd ehci-hcd ohci-hcd uhci-hcd usbhid psmouse"
+

Modified: trunk/examples/simple/class/FAIBASE.var
===================================================================
--- trunk/examples/simple/class/FAIBASE.var	2011-04-14 17:42:06 UTC (rev 6344)
+++ trunk/examples/simple/class/FAIBASE.var	2011-04-14 18:04:24 UTC (rev 6345)
@@ -14,11 +14,5 @@
 # pw is "fai"
 ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
 
-# MODULESLIST contains modules that will be loaded by the new system,
-# not during installation these modules will be written to /etc/modules
-# If you need a module during installation, add it to $kernelmodules
-# in 20-hwdetect.source. But discover should do most of this job
-MODULESLIST="usbkbd ehci-hcd ohci-hcd uhci-hcd usbhid psmouse"
-
-# erros in tasks greater than this value will cause the installation to stop
+# errors in tasks greater than this value will cause the installation to stop
 STOP_ON_ERROR=700

Added: trunk/examples/simple/scripts/CENTOS/50-misc
===================================================================
--- trunk/examples/simple/scripts/CENTOS/50-misc	                        (rev 0)
+++ trunk/examples/simple/scripts/CENTOS/50-misc	2011-04-14 18:04:24 UTC (rev 6345)
@@ -0,0 +1,23 @@
+#! /bin/bash
+
+# (c) Michael Goetze, 2011, mgoetze at mgoetze.net
+
+error=0 ; trap "error=$((error|1))" ERR
+
+cat > $target/etc/sysconfig/clock <<-EOF
+	UTC=$UTC
+	ZONE=$TIMEZONE
+	EOF
+cat > $target/etc/sysconfig/i18n <<-EOF
+	LANG="$DEFAULTLOCALE" 
+	SUPPORTED="$SUPPORTEDLOCALE" 
+	SYSFONT="$CONSOLEFONT"
+	EOF
+cat > $target/etc/sysconfig/keyboard <<-EOF
+	KEYBOARDTYPE="pc"
+	KEYTABLE="$KEYMAP"
+	EOF
+fcopy -iv /etc/sysconfig/i18n /etc/sysconfig/keyboard
+
+exit $error
+




More information about the Fai-commit mailing list