[Fai-commit] r3621 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Sat Jul 22 21:08:07 UTC 2006


Author: lange
Date: 2006-07-22 21:08:06 +0000 (Sat, 22 Jul 2006)
New Revision: 3621

Modified:
   trunk/lib/create_ramdisk
   trunk/lib/create_resolv_conf
   trunk/lib/disk-info
   trunk/lib/subroutines
Log:
add info about variables, remove devfsd code


Modified: trunk/lib/create_ramdisk
===================================================================
--- trunk/lib/create_ramdisk	2006-07-22 20:39:53 UTC (rev 3620)
+++ trunk/lib/create_ramdisk	2006-07-22 21:08:06 UTC (rev 3621)
@@ -4,11 +4,13 @@
 
 # create a writeable area on the install client
 
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    none
+# Requires-Var:    none
+# Short-Description: <task desc.>
+### END SUBROUTINE INFO
+
 mount -n -t proc proc /proc
-# start devfsd if needed
-if [ -c /dev/.devfsd ]; then
-    /sbin/devfsd /dev
-fi
 
 # if we have shm use it as ramdisk
 mount -t tmpfs tmpfs /tmp || {

Modified: trunk/lib/create_resolv_conf
===================================================================
--- trunk/lib/create_resolv_conf	2006-07-22 20:39:53 UTC (rev 3620)
+++ trunk/lib/create_resolv_conf	2006-07-22 21:08:06 UTC (rev 3621)
@@ -1,5 +1,11 @@
 #! /bin/sh
 
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    $DNSSRVS $DOMAIN
+# Requires-Var:    none
+# Short-Description: <task desc.>
+### END SUBROUTINE INFO
+
 # create a resolv.conf using the DHCP or BOOTP information
 if [ "$DNSSRVS" ]; then
 	[ "$DOMAIN" ] && echo "domain $DOMAIN" >/tmp/etc/resolv.conf

Modified: trunk/lib/disk-info
===================================================================
--- trunk/lib/disk-info	2006-07-22 20:39:53 UTC (rev 3620)
+++ trunk/lib/disk-info	2006-07-22 21:08:06 UTC (rev 3621)
@@ -1,5 +1,10 @@
 #! /bin/sh
 
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    none
+# Requires-Var:    none
+# Short-Description: <task desc.>
+### END SUBROUTINE INFO
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 diskandsize() {
 

Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2006-07-22 20:39:53 UTC (rev 3620)
+++ trunk/lib/subroutines	2006-07-22 21:08:06 UTC (rev 3621)
@@ -49,6 +49,12 @@
     done
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:      none
+# Required-Var:      $classes
+# Short-Description: test if class is defined
+### END SUBROUTINE INFO
+
 ifclass() {
 
     [ "$debug" ] && echo "Test if class $1 is in $classes"
@@ -86,6 +92,12 @@
     done
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:      $terror
+# Required-Var:      $LOGDIR
+# Short-Description: call a certain task
+### END SUBROUTINE INFO
+
 task() {
 
     # hooks are called before a task is called
@@ -112,6 +124,12 @@
     unset task_$taskname
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:      
+# Required-Var:      $classes $debug
+# Short-Description: call a hook, hook.source can define additional variables
+### END SUBROUTINE INFO
+
 call_hook() {
 
     local hook=$1
@@ -223,6 +241,13 @@
     done
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    $DNSDOMAIN $FAI_RUNDATE
+# Requires-Var:    $DOMAIN $DO_INIT_TASKS
+# Suggests-Var:    $createvt $sshd
+# Short-Description: <task desc.>
+### END SUBROUTINE INFO
+
 task_setup() {
 
     # source user specific subroutines
@@ -251,6 +276,12 @@
     FAI_RUNDATE=$(date +'%Y%m%d_%H%M%S')
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    none
+# Requires-Var:    $FAI_ACTION
+# Short-Description: call task depending on $FAI_ACTION
+### END SUBROUTINE INFO
+
 task_action() {
 
     if [ -z "$FAI_ACTION" ]; then
@@ -297,6 +328,13 @@
 	esac
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    $classes $cfclasses
+# Requires-Var:    $LOGDIR
+# Suggests-Var:    $renewclass
+# Short-Description: <task desc.>
+### END SUBROUTINE INFO
+
 task_defclass() {
 
     if [ ! -d $FAI/class ]; then




More information about the Fai-commit mailing list