[Fai-commit] r3623 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Sat Jul 22 22:09:27 UTC 2006


Author: lange
Date: 2006-07-22 22:09:27 +0000 (Sat, 22 Jul 2006)
New Revision: 3623

Modified:
   trunk/lib/subroutines-linux
Log:
add info about variables


Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2006-07-22 21:16:33 UTC (rev 3622)
+++ trunk/lib/subroutines-linux	2006-07-22 22:09:27 UTC (rev 3623)
@@ -8,6 +8,12 @@
 # (c) 2005-2006 by Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    $device_size $disklist
+# Requires-Var:    
+# Short-Description: create list of available disks and their sizes
+### END SUBROUTINE INFO
+
 set_disk_info() {
 
     # the variable holds a space separated list of devices and their block size
@@ -38,6 +44,13 @@
     done
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    $faimond $sndhostname
+# Requires-Var:    $LOGDIR
+# Suggests-Var:    $monserver
+# Short-Description: <task desc.>
+### END SUBROUTINE INFO
+
 task_confdir() {
 
     if [ $DO_INIT_TASKS -eq 1 ] ; then
@@ -70,6 +83,12 @@
     fi
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    $BOOT_DEVICE $ROOT_PARTITION $BOOT_PARTITION $SWAPLIST
+# Requires-Var:    $LOGDIR $diskvar
+# Short-Description: partition local hard disk
+### END SUBROUTINE INFO
+
 task_partition() {
 
     echo "Partitioning local harddisks"
@@ -84,6 +103,13 @@
     . $diskvar
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    none
+# Requires-Var:    $FAI_ROOT $fstab $DO_INIT_TASKS $NFSROOT
+# Suggests-Var:    $createvt $sshd
+# Short-Description: <task desc.>
+### END SUBROUTINE INFO
+
 task_extrbase() {
 
     local fs=$FAI_ROOT/etc/$fstab
@@ -97,6 +123,13 @@
     cp -p $LOGDIR/$fstab $fs
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    
+# Requires-Var:    $FAI_ROOT $MNTPOINT $romountopt
+# Suggests-Var:    $FAI_DEBMIRROR $debug
+# Short-Description: <task desc.>
+### END SUBROUTINE INFO
+
 task_mirror() {
 
     # mount debian mirror directory
@@ -120,6 +153,13 @@
     fai-debconf $FAI/debconf
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+### BEGIN SUBROUTINE INFO
+# Provides-Var:    none
+# Requires-Var:    $FAI_ROOT
+# Suggests-Var:    $IPADDR $DOMAIN
+# Short-Description: <task desc.>
+### END SUBROUTINE INFO
+
 task_prepareapt () {
 
     # ftp and http needs resolv.conf in chroot environment, /etc/hosts is useful




More information about the Fai-commit mailing list