On Tue, Mar 22, 2005 at 04:49:45PM +0100, Erich Focht wrote:
> Hi,
> 
> I filed this in the OSCAR bugtracker, but this list seems more
> appropriate for the fix:
> 
> The systemconfigurator kernel version recognition fails This is due to
> the VERY simple way of detection of the kernel version in
> /usr/lib/systemconfig/Initrd/Generic.pm. For the RHEL3-ia64 kernel the
> the string 1.1.3 was recognized as version, which is obviously wrong.
> 
> The consequence is that the sc-initrd generation fails.  It can be
> fixed by the attached patch. This should go into the
> systemconfigurator package, which is installed in the node images.
> 
> Best regards,
> Erich
> 

> --- usr/lib/systemconfig/Initrd/Generic.pm.orig       2005-03-21 
> 14:54:43.094022920 +0100
> +++ usr/lib/systemconfig/Initrd/Generic.pm    2005-03-21 14:56:24.169657088 
> +0100
> @@ -47,7 +47,7 @@
>          
>      while(<IN>) {
>          # When Linux Kernel 4.0pre1 comes out, we'll have to change this
> -        if(/[^\/\-]([123]\.\d+\.[\w\-\.]+)/) {
> +        if(/Linux version[^\/\-]([123]\.\d+\.[\w\-\.]+)/) {
>              verbose("Found version '$1' at line # $.");
>              $version = $1;
>              last;

This only works on Red Hat Kernels, for whatever reason, so you'll need a
more generic patch before it should be included.

        -Sean

-- 
__________________________________________________________________

Sean Dague                                       Mid-Hudson Valley
sean at dague dot net                            Linux Users Group
http://dague.net                                 http://mhvlug.org

There is no silver bullet.  Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________

Attachment: pgpHrBDdnkpQ0.pgp
Description: PGP signature

Reply via email to