diff options
| author | Oliver Tappe | 2007-04-15 13:33:43 +0200 |
|---|---|---|
| committer | Oliver Tappe | 2007-04-15 13:33:43 +0200 |
| commit | b2ff07395c692dd7164a5a5434ef9ae9e83d7ce6 (patch) | |
| tree | c6944164191cd3f1e43047ab13d3be421989c4e9 /installer/OpenSLX/OSSetup/MetaPackager | |
| parent | * activated check for required modules in slxos-export, such that you can onl... (diff) | |
| download | core-b2ff07395c692dd7164a5a5434ef9ae9e83d7ce6.tar.gz core-b2ff07395c692dd7164a5a5434ef9ae9e83d7ce6.tar.xz core-b2ff07395c692dd7164a5a5434ef9ae9e83d7ce6.zip | |
* improved installer such that it can continue in case the basic system had been successully
created in a previous run (it used to break in that case, complaining about several
folders not being empty).
* added support for invoking any potential vendor-specific configuration script (like SuSEconfig)
after each metapackager session. Implemented invocation of SuSEconfig for all supported
SUSE distros. This improves the result of an installation a lot, as it brings the system
into a more directly usable state.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@892 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/MetaPackager')
| -rw-r--r-- | installer/OpenSLX/OSSetup/MetaPackager/Base.pm | 18 | ||||
| -rw-r--r-- | installer/OpenSLX/OSSetup/MetaPackager/yum.pm | 9 |
2 files changed, 17 insertions, 10 deletions
diff --git a/installer/OpenSLX/OSSetup/MetaPackager/Base.pm b/installer/OpenSLX/OSSetup/MetaPackager/Base.pm index be11ae51..313460f6 100644 --- a/installer/OpenSLX/OSSetup/MetaPackager/Base.pm +++ b/installer/OpenSLX/OSSetup/MetaPackager/Base.pm @@ -51,8 +51,24 @@ sub installSelection { } -sub clean +sub startSession { + my $self = shift; + + system('mount -t proc proc /proc 2>/dev/null'); + + $self->{engine}->{distro}->startSession(); + # allow vendor specific extensions +} + +sub finishSession +{ + my $self = shift; + + $self->{engine}->{distro}->finishSession(); + # allow vendor specific extensions + + system('umount /proc 2>/dev/null'); } 1; diff --git a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm index 8e0cda3f..62a9806a 100644 --- a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm +++ b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm @@ -47,7 +47,6 @@ sub initPackageSources { my $self = shift; - slxsystem("cp /proc/cpuinfo $self->{engine}->{'vendor-os-path'}/proc"); slxsystem("rm -f $self->{engine}->{'vendor-os-path'}/etc/yum.repos.d/*"); slxsystem("mkdir -p $self->{engine}->{'vendor-os-path'}/etc/yum.repos.d"); } @@ -94,12 +93,4 @@ sub updateBasicVendorOS } } -sub cleanup -{ - my $self = shift; - - slxsystem('umount /proc 2>/dev/null'); - slxsystem('rm /proc/cpuinfo'); -} - 1;
\ No newline at end of file |
