blob: 59c2353cca6efb8b6ff6e5e068325f923c528a32 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# SUSE_10_2.pm
# - provides SUSE-10.2-specific overrides of the OpenSLX OSSetup API.
#
# (c) 2006 - OpenSLX.com
#
# Oliver Tappe <ot@openslx.com>
#
package OpenSLX::OSSetup::Distro::SUSE_10_2;
use vars qw(@ISA $VERSION);
@ISA = ('OpenSLX::OSSetup::Distro::Base');
$VERSION = 1.01; # API-version . implementation-version
use strict;
use Carp;
use OpenSLX::Basics;
use OpenSLX::OSSetup::Distro::Base 1.01;
################################################################################
### implementation
################################################################################
sub new
{
my $class = shift;
my $self = {
'base-name' => 'suse-10.2',
};
return bless $self, $class;
}
sub initialize
{
my $self = shift;
my $engine = shift;
$self->SUPER::initialize($engine);
$self->{'packager-type'} = 'rpm';
$self->{'meta-packager-type'} = $ENV{SLX_META_PACKAGER} || 'yum';
$ENV{YAST_IS_RUNNING} = "instsys";
}
sub fixPrerequiredFiles
{
my $self = shift;
my $stage1cDir = shift;
if (system("chown root: $stage1cDir/etc/{group,passwd,shadow}")) {
die _tr("unable to fix pre-required files (%s)", $!);
}
}
1;
|