From 8cb009f50a801bddc993ca3177e4fd768f912294 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 6 May 2007 18:22:48 +0000 Subject: * added support to exporter modules for passing out the required fs-modules * improved config-demuxer to ask exporter for required fs-mods and pass this to mkdxsinitrd git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1019 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSExport/Engine.pm | 7 +++++++ installer/OpenSLX/OSExport/ExportType/Base.pm | 7 +++++++ installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm | 7 +++++++ installer/OpenSLX/OSExport/ExportType/NFS.pm | 7 +++++++ 4 files changed, 28 insertions(+) (limited to 'installer') diff --git a/installer/OpenSLX/OSExport/Engine.pm b/installer/OpenSLX/OSExport/Engine.pm index 690a56c7..77b21eaa 100644 --- a/installer/OpenSLX/OSExport/Engine.pm +++ b/installer/OpenSLX/OSExport/Engine.pm @@ -158,6 +158,13 @@ sub purgeExport $self->removeExportFromConfigDB(); } +sub requiredFSMods +{ + my $self = shift; + + return $self->{exporter}->requiredFSMods(); +} + ################################################################################ ### implementation methods ################################################################################ diff --git a/installer/OpenSLX/OSExport/ExportType/Base.pm b/installer/OpenSLX/OSExport/ExportType/Base.pm index 3954bfa9..ccf21826 100644 --- a/installer/OpenSLX/OSExport/ExportType/Base.pm +++ b/installer/OpenSLX/OSExport/ExportType/Base.pm @@ -60,6 +60,13 @@ sub addExportToConfigDB return $openslxDB->addExport($export); } +sub requiredFSMods +{ + my $self = shift; + + return ''; +} + ################################################################################ ### implementation methods ################################################################################ diff --git a/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm b/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm index 52395b65..ec25d067 100644 --- a/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm +++ b/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm @@ -111,6 +111,13 @@ sub addExportToConfigDB return $res; } +sub requiredFSMods +{ + my $self = shift; + + return 'nbd squashfs'; +} + ################################################################################ ### implementation methods ################################################################################ diff --git a/installer/OpenSLX/OSExport/ExportType/NFS.pm b/installer/OpenSLX/OSExport/ExportType/NFS.pm index b25736b8..dad07b57 100644 --- a/installer/OpenSLX/OSExport/ExportType/NFS.pm +++ b/installer/OpenSLX/OSExport/ExportType/NFS.pm @@ -58,6 +58,13 @@ sub purgeExport 1; } +sub requiredFSMods +{ + my $self = shift; + + return 'nfs'; +} + ################################################################################ ### implementation methods ################################################################################ -- cgit v1.2.3-55-g7522