From 55d4f64e83f92236669670b24615410b46d0a376 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 24 Aug 2010 22:35:52 +0200 Subject: squashfs export updated.. see #435 --- installer/OpenSLX/OSExport/Distro/Base.pm | 8 ++++++++ installer/OpenSLX/OSExport/Distro/Suse.pm | 19 +++++++++++++++++++ installer/OpenSLX/OSExport/Distro/Ubuntu.pm | 20 ++++++++++++++++++++ 3 files changed, 47 insertions(+) (limited to 'installer/OpenSLX/OSExport/Distro') diff --git a/installer/OpenSLX/OSExport/Distro/Base.pm b/installer/OpenSLX/OSExport/Distro/Base.pm index aa24f8de..5223ce95 100644 --- a/installer/OpenSLX/OSExport/Distro/Base.pm +++ b/installer/OpenSLX/OSExport/Distro/Base.pm @@ -47,6 +47,14 @@ sub initDistroInfo { } +sub getSquashfsVersion +{ + my $self = shift; + my $distroVersion = shift; + + return "4.0"; +} + 1; ################################################################################ diff --git a/installer/OpenSLX/OSExport/Distro/Suse.pm b/installer/OpenSLX/OSExport/Distro/Suse.pm index 586cf51a..9e62e6e5 100644 --- a/installer/OpenSLX/OSExport/Distro/Suse.pm +++ b/installer/OpenSLX/OSExport/Distro/Suse.pm @@ -123,4 +123,23 @@ sub initDistroInfo return; } + +sub getSquashfsVersion +{ + my $self = shift; + my $distroVersion = shift; + + my %versionMap = ( + '11.0' => '3.2', + '11.1' => '3.2', + '11.2' => '3.3', + '11.3' => '4.0' + ); + + my $distroDefault = '4.0'; + + return $versionMap{$distroVersion} || $distroDefault; +} + + 1; diff --git a/installer/OpenSLX/OSExport/Distro/Ubuntu.pm b/installer/OpenSLX/OSExport/Distro/Ubuntu.pm index a1e477d5..3826f019 100644 --- a/installer/OpenSLX/OSExport/Distro/Ubuntu.pm +++ b/installer/OpenSLX/OSExport/Distro/Ubuntu.pm @@ -85,4 +85,24 @@ sub initDistroInfo return; } + +sub getSquashfsVersion +{ + my $self = shift; + my $distroVersion = shift; + + my %versionMap = ( + '8.04' => '3.3', + '8.10' => '3.3', + '9.04' => '3.3', + '9.10' => '4.0', + '10.04' => '4.0' + ); + + my $distroDefault = '4.0'; + + return $versionMap{$distroVersion} || $distroDefault; +} + + 1; -- cgit v1.2.3-55-g7522