Hello,

when using si_prepareclient with SLES 11 you get an error message like these
{{{
si_prepareclient --server ic9n998 -y
....
I couldn't identify your kernel file.  Please try to use --kernel option.
}}}
This is caused by a kernel string (2.6.27.29-0.1-default (ge...@buildhost) #1 
SMP 2009-08-15 17:53:59 +0200) which is not matched by the regex in  
/usr/lib/systemimager/perl/SystemImager/UseYourOwnKernel.pm. I wrote a patch 
which matches all the old kernel strings and also the new one (see 
attachement).

After patching /usr/lib/systemimager/perl/SystemImager/UseYourOwnKernel.pm
{{{
patch /usr/lib/systemimager/perl/SystemImager/UseYourOwnKernel.pm 
</usr/lib/systemimager/perl/SystemImager/UseYourOwnKernel.pm.patch
}}}
the error is gone

Greetings Holger Obermaier
--- /usr/lib/systemimager/perl/SystemImager/UseYourOwnKernel.pm.orig	2009-11-13 16:06:09.000000000 +0100
+++ /usr/lib/systemimager/perl/SystemImager/UseYourOwnKernel.pm.new	2009-12-23 14:47:02.000000000 +0100
@@ -365,6 +365,12 @@
         #
         # eliminate message
         if( $filename =~ m/^message/ ) { return undef; }
+        #
+        # eliminate symbol files
+        if( $filename =~ m/^sym/ ) { return undef; }
+        #
+        # eliminate backup_mbr
+        if( $filename =~ m/^backup_mbr/ ) { return undef; }
 
         #
         # Get output from "file" for elimination by identification tests
@@ -460,19 +466,20 @@
                 #       2.4.19-mantis-2002.11.20 (r...@mantis) #6 Tue Nov 19 15:15:43 CST 2002
                 #       2.6.7-1-686 ([email protected]) #1 Thu Jul 8 05:36:53 EDT 2004
                 #       2.6.22.5-31-default (ge...@buildhost) #1 SMP 2007/09/21 22:29:00 UTC
+                #       2.6.27.29-0.1-default (ge...@buildhost) #1 SMP 2009-08-15 17:53:59 +0200
                 #
                 my $regex =
                 #           | kernel version + build machine
                 #           `---------------------------------------
-                            '(2\.[46]\.\d[^\/]*?) \(....@.*\) [#]\d+.*' .
+                            '(2[.][46][.][[:digit:]][^\/]*?) [(]...@.*[)] [#][[:digit:]]+.*' ;
                 #
                 #           | build date
                 #           `---------------------------------------
-                            '(\w{3} \w{3} \d{1,2}|\d{4}\/\d{2}\/\d{2}) '.
+                            '(\w{3} \w{3} [[:digit:]]{1,2}|[[:digit:]]{4}[/-][[:digit:]]{2}[/-][[:digit:]]{2}) '.
                 #
                 #           | build time
                 #           `---------------------------------------
-                            '\d{2}:\d{2}:\d{2} \w{3,4}( \d{4})?';
+                            '[[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2} (\w{3,4}|[+-][[:digit:]]{4})?( [[:digit:]]{4})?';
                 while(<IN>) {
                        # extract the `uname -r` string from the kernel file
                        if(m/$regex/o) {
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to