summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm
diff options
context:
space:
mode:
Diffstat (limited to 'installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm')
-rw-r--r--installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm35
1 files changed, 35 insertions, 0 deletions
diff --git a/installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm b/installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm
index 6fd4c74e..59e18820 100644
--- a/installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm
+++ b/installer/OpenSLX/OSSetup/Distro/Debian_3_1.pm
@@ -19,6 +19,7 @@ use warnings;
use base qw(OpenSLX::OSSetup::Distro::Debian);
use OpenSLX::Basics;
+use OpenSLX::Utils;
################################################################################
### implementation
@@ -64,9 +65,43 @@ sub initDistroInfo
kernel-image-2.6-386
locales
",
+
+ 'gnome' => "
+ <<<default>>>
+ gnome
+ ",
+
+ 'kde' => "
+ <<<default>>>
+ kde
+ ",
+
};
return;
}
+sub preSystemInstallationHook
+{
+ my $self = shift;
+
+ $self->SUPER::preSystemInstallationHook();
+
+ # replace /usr/sbin/mkinitrd with a dummy, in order to skip the hopeless
+ # pass at trying to create an initrd. It doesn't work and we don't need
+ # it either.
+ rename('/usr/sbin/mkinitrd', '/usr/sbin/_mkinitrd');
+ spitFile('/usr/sbin/mkinitrd', "#! /bin/sh\ntouch \$2\n");
+ chmod 0755, '/usr/sbin/mkinitrd';
+}
+
+sub postSystemInstallationHook
+{
+ my $self = shift;
+
+ # restore /usr/sbin/mkinitrd
+ rename('/usr/sbin/_mkinitrd', '/usr/sbin/mkinitrd');
+ $self->SUPER::postSystemInstallationHook();
+}
+
1; \ No newline at end of file