The attached SLES.pm file works for SLES10 x86_64 and should work for
x86. 

 

 

 

Regards, 

 

Christopher Heller

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of peter
rottmann
Sent: Monday, November 20, 2006 15:01
To: [email protected]
Subject: [Oscar-users] Oscar 5.0 installation on SuSE SLES 10

 

Hi,

 

I figured out, that some of you have successfully installed Oscar 5.0
onto an SLES 10 Server. I know that this SuSE package is not supported
by Oscar per default but I found some description from Eric Focht
describing changes in the SuSE.pm to install Oscar 5.0 onto SLES
successfully.

 

I have a small SLES 10 system running at home for testing an evaluation,
and I thought it might be a good idea to install Oscar on that machine
too, but unfortunately without success. I'm getting the same error
messages before or after changing the SuSE.pm.

 

--> Checking if this is a supported platform

ERROR: This is an unsupported system.  Specifically, no module in
OSCAR/OCA/OS_Detect positively identified this as a supported system.

Cannot continue at ./install_cluster line 188.

 

This is my suse.pm

 

 

package OCA::OS_Detect::SLES;

 

use strict;

 

my $distro = "sles";

my $compat_distro = "sles";

my $pkg = "rpm";

my $detect_package = "suse-release";

my $detect_file = "/bin/bash";

 

sub detect_dir {

    my ($root) = @_;

    my $release_string;

 

    # If /etc/SuSE-release exists, continue, otherwise, quit.

    if (-f "$root/etc/SuSE-release") {

            $release_string = `cat $root/etc/SuSE-release`;

    } else {

            return undef;

    }

 

    my $id = {

            os => "linux",

            chroot => $root,

    };

 

    if ($release_string =~ SUSE Linux Enterprise Server {

            my $os_version = $1;

        $id->{distro} = $distro;

        $id->{distro_version} = $os_version;

        $id->{compat_distro} = $compat_distro;

        $id->{compat_distrover} = $os_version;

        $id->{pkg} = $pkg;

    } else {

            return undef;

    }

 

    # this hash contains all info necessary for identifying the OS

 

    # determine architecture

    my $arch =
main::OSCAR::OCA::OS_Detect::detect_arch_file($root,$detect_file);

    $id->{arch} = $arch;

 

    # Make final string

    $id->{ident} =
"$id->{os}-$id->{arch}-$id->{distro}-$id->{distro_version}";

 

    return $id;

}

 

sub detect_pool {

    my ($pool) = @_;

 

    my $id = main::OSCAR::OCA::OS_Detect::detect_pool_rpm($pool,

 
$detect_package,

 
$distro,

 
$compat_distro);

 

    return $id;

}

 

sub detect_fake {

    my ($fake) = @_;

    my $id = main::OSCAR::OCA::OS_Detect::detect_fake_common($fake,

 
$distro,

 
$compat_distro,

 
$pkg);

    return $id;

}

 

# If we got here, we're happy

1;

 

 

What's wrong, were is my mistake ????

 

Regards

 

 

Peter

<<attachment: image001.jpg>>

Attachment: SLES.pm
Description: SLES.pm

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Oscar-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to