Hello,

probably, this goes to arighi (see changeset 4394):

I'm having a little trouble with kernel detection. When applying the
full regex

my $regex =
  #           | kernel version + build machine
  #           `---------------------------------------
  '(2\.[46]\.\d[^\/]*?) \([EMAIL PROTECTED]) [#]\d+.*' .
  #
  #           | build date
  #           `---------------------------------------
  '(\w{3} \w{3} \d{1,2}|\d{4}\/\d{2}\/\d{2}) '.
  #
  #           | build time
  #           `---------------------------------------
  '\d{2}:\d{2}:\d{2} \w{3,4}( \d{4})?';

on a openSuSE 11.0/10.3 kernel file, it does not match the kernel.

In SystemImager/UseYourOwnKernel.pm, it helps using 

my $regex =
  #           | kernel version + build machine
  #           `---------------------------------------
  '(2\.[46]\.\d[^\/]*?) \([EMAIL PROTECTED])';

only. This works with a SuSE kernel as well as a red-hat (Scientific
Linux) kernel. I can send you some kernels upon request.

How important is matching the build date and time? I've got the
impression it is not. Wouldn't it save considering some format issues
with dashes vs. slashes in the date string etc.?

On a second note, I've seen that SuSE has some more files (symsets,
symvers, symtype, backup_mbr) in the /boot directory. Could these be
added to the is_kernel function?

Cheers, Peter.

-- 
Peter Niessen
FZJ
Tel.: (+49)2461/61-1753



-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
sisuite-users mailing list
sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to