diff options
Diffstat (limited to 'installer/OpenSLX/OSExport/Distro/Ubuntu.pm')
-rw-r--r-- | installer/OpenSLX/OSExport/Distro/Ubuntu.pm | 20 |
1 files changed, 20 insertions, 0 deletions
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; |