Bernard Li wrote:
> It seems that durinig init, kernel is correctly reported (uname -r),
> however, during imaging, it seems that the string is truncated to just
> "2.6" - any idea why this is happening?
> 

Bernard,

this should fix the problem.. anyway I don't understand why?? it seems
that the "kernel" variable is not used in other parts, but changing the
variable name seems to resolve... maybe there's something related to
busybox or udev stuff?

Cheers,
-Andrea

-------- Original Message --------
Subject: [systemimager-commits] r3500 - trunk/initrd_source/skel/etc/init.d
Date: Sun, 09 Apr 2006 04:30:01 -0500
From: Andrea Righi <[EMAIL PROTECTED]>
Reply-To: sisuite-devel@lists.sourceforge.net
To: [EMAIL PROTECTED]

Author: arighi
Date: 2006-04-09 04:30:00 -0500 (Sun, 09 Apr 2006)
New Revision: 3500

Modified:
   trunk/initrd_source/skel/etc/init.d/functions
Log:
fix: report the full kernel string during imaging

Modified: trunk/initrd_source/skel/etc/init.d/functions
===================================================================
--- trunk/initrd_source/skel/etc/init.d/functions       2006-04-05 21:46:03
UTC (rev 3499)
+++ trunk/initrd_source/skel/etc/init.d/functions       2006-04-09 09:30:00
UTC (rev 3500)
@@ -1473,8 +1473,8 @@
         fi

         # Collect the kernel information.
-        if [ -z "$kernel" ]; then
-            kernel=`uname -r`
+        if [ -z "$kernel_name" ]; then
+            kernel_name=`uname -r`
         fi

         # Collect the amount of phyisical memory.
@@ -1490,7 +1490,7 @@
     fi

     # Report the message to the monitor server.
-    send_msg=`echo
"mac=$mac:ip=$IPADDR:host=$HOSTNAME:cpu=$cpu:ncpus=$ncpus:kernel=$kernel:mem=$mem:os=$IMAGENAME:tmpfs=$tmpfs:time=$time:$msg"`
+    send_msg=`echo
"mac=$mac:ip=$IPADDR:host=$HOSTNAME:cpu=$cpu:ncpus=$ncpus:kernel=$kernel_name:mem=$mem:os=$IMAGENAME:tmpfs=$tmpfs:time=$time:$msg"`

     # Send data to monitor server.
     echo "$send_msg" | nc $MONITOR_SERVER $MONITOR_PORT


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to