diff options
author | Oliver Tappe | 2008-03-24 11:54:23 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-03-24 11:54:23 +0100 |
commit | 4b35e3ae3b76a192d02e08940d56b4240cf2f52e (patch) | |
tree | 5f735abd72a42f08fdabec08f064ff54c2890af7 /installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm | |
parent | * Switched from explicit cleanup functions to "resource acquisition by defini... (diff) | |
download | core-4b35e3ae3b76a192d02e08940d56b4240cf2f52e.tar.gz core-4b35e3ae3b76a192d02e08940d56b4240cf2f52e.tar.xz core-4b35e3ae3b76a192d02e08940d56b4240cf2f52e.zip |
* Adjusted OSSetup::Distro implementations to apply necessary fixes as part of any
session, not just installation, since these must be executed for shell and plugin
sessions, too.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1679 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm')
-rw-r--r-- | installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm b/installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm index 7f390bc1..e6ea3722 100644 --- a/installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm +++ b/installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm @@ -43,13 +43,32 @@ sub preSystemInstallationHook chmod 0755, '/usr/sbin/mkinitrd'; } -sub postSystemInstallationHook +sub startSession { - my $self = shift; + my $self = shift; + my $osDir = shift; + + $self->SUPER::startSession($osDir); + + # As in preSystemInstallationHook, we replace /usr/sbin/mkinitrd with a + # dummy, in order to skip the initrd-creation. + # + # During installation, this might not exist yet, so we better check + if (-e '/usr/sbin/mkinitrd') { + rename('/usr/sbin/mkinitrd', '/usr/sbin/_mkinitrd'); + spitFile('/usr/sbin/mkinitrd', "#! /bin/sh\ntouch \$2\n"); + chmod 0755, '/usr/sbin/mkinitrd'; + } +} + +sub finishSession +{ + my $self = shift; # restore /usr/sbin/mkinitrd rename('/usr/sbin/_mkinitrd', '/usr/sbin/mkinitrd'); - $self->SUPER::postSystemInstallationHook(); + + $self->SUPER::finishSession(); } 1;
\ No newline at end of file |