[Fai-commit] r6683 - trunk/bin

Thomas Lange lange at alioth.debian.org
Mon Oct 10 13:33:38 UTC 2011


Author: lange
Date: 2011-10-10 13:33:37 +0000 (Mon, 10 Oct 2011)
New Revision: 6683

Modified:
   trunk/bin/make-fai-nfsroot
Log:
add comments, code cleanup


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2011-10-10 13:13:20 UTC (rev 6682)
+++ trunk/bin/make-fai-nfsroot	2011-10-10 13:33:37 UTC (rev 6683)
@@ -321,6 +321,7 @@
     # liloconfig, dump needs these files
     echo "# UNCONFIGURED FSTAB FOR BASE SYSTEM" > etc/fstab
 
+    # this copies sources.list into the nfsroot
     cp -La $cfdir/apt $NFSROOT/etc
 
     add_etc_hosts_entries
@@ -369,7 +370,6 @@
         . /tmp/fai/variables.log 2>/dev/null
 EOF
 
-    call_verbose setup_ssh
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 upgrade_nfsroot() {
@@ -394,7 +394,8 @@
     export FAI_ROOT=$NFSROOT
     export classes="NFSROOT $iarch"
 
-cat > $NFSROOT/etc/kernel-img.conf << EOF
+    # is this still needed? All these variables are not documented in kernel-img.conf(5) in squeeze
+    cat > $NFSROOT/etc/kernel-img.conf << EOF
 do_bootloader = No
 do_initrd = No
 warn_initrd = No
@@ -511,6 +512,7 @@
 fi
 
 create_nfsroot
+call_verbose setup_ssh
 run_hooks
 check_nfsroot
 umount_dirs




More information about the Fai-commit mailing list