[Fai-commit] r3480 - in people/mugwump/vserver: . examples/simple/scripts/LAST

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Thu Jun 8 15:07:29 UTC 2006


Author: samv-guest
Date: 2006-05-02 20:59:30 +0000 (Tue, 02 May 2006)
New Revision: 3480

Modified:
   people/mugwump/vserver/
   people/mugwump/vserver/examples/simple/scripts/LAST/50-misc
Log:
Disable some sections of this script for VSCHILD class



Property changes on: people/mugwump/vserver
___________________________________________________________________
Name: svk:merge
   - d29f7b36-84ff-0310-85ce-ba787dbd31ca:/local/fai/people/mugwump/vserver:8128
   + d29f7b36-84ff-0310-85ce-ba787dbd31ca:/local/fai/people/mugwump/vserver:8129

Modified: people/mugwump/vserver/examples/simple/scripts/LAST/50-misc
===================================================================
--- people/mugwump/vserver/examples/simple/scripts/LAST/50-misc	2006-05-02 20:59:05 UTC (rev 3479)
+++ people/mugwump/vserver/examples/simple/scripts/LAST/50-misc	2006-05-02 20:59:30 UTC (rev 3480)
@@ -14,20 +14,27 @@
 echo "#$FAI_DEBMIRROR $MNTPOINT nfs ro 0 0" >> $target/etc/fstab
 
 # set bios clock
-if [ $DO_INIT_TASKS -eq 1 ] ; then
-    case "$UTC" in
-       no|"") hwopt="--localtime" ;;
-       yes)   hwopt="--utc"       ;;
-    esac
-    $ROOTCMD hwclock $hwopt --systohc
+if ! ifclass VSCHILD
+then
+    if [ $DO_INIT_TASKS -eq 1 ] ; then
+        case "$UTC" in
+           no|"") hwopt="--localtime" ;;
+           yes)   hwopt="--utc"       ;;
+        esac
+        $ROOTCMD hwclock $hwopt --systohc
+    fi
 fi
 
 # Make sure everything is configured properly
 echo "Running \"apt-get -f install\" for the last time."
 $ROOTCMD apt-get -f install
 
-lskernels=$(echo $target/boot/vmlinu*)
-[ -f ${lskernels%% *} ] || echo "ERROR: No kernel was installed. Have a look at shell.log"
+if ! ifclass VSCHILD
+then
+    lskernels=$(echo $target/boot/vmlinu*)
+    [ -f ${lskernels%% *} ] || echo "ERROR: No kernel was installed. Have a look at shell.log"
+fi
+
 # copy sources.list
 fcopy -i /etc/apt/sources.list
 




More information about the Fai-commit mailing list