diff options
Diffstat (limited to 'installer/OpenSLX/OSSetup/Distro/SUSE_10_1.pm')
-rw-r--r-- | installer/OpenSLX/OSSetup/Distro/SUSE_10_1.pm | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/installer/OpenSLX/OSSetup/Distro/SUSE_10_1.pm b/installer/OpenSLX/OSSetup/Distro/SUSE_10_1.pm new file mode 100644 index 00000000..ebf8902b --- /dev/null +++ b/installer/OpenSLX/OSSetup/Distro/SUSE_10_1.pm @@ -0,0 +1,52 @@ +# SUSE_10_2.pm +# - provides SUSE-10.1-specific overrides of the OpenSLX OSSetup API. +# +# (c) 2006 - OpenSLX.com +# +# Oliver Tappe <ot@openslx.com> +# +package OpenSLX::OSSetup::Distro::SUSE_10_1; + +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.1', + }; + 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;
\ No newline at end of file |