diff options
author | Oliver Tappe | 2007-05-29 22:06:16 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-05-29 22:06:16 +0200 |
commit | d561c9b1d1440185a5000c3d4df4395ba6de9a22 (patch) | |
tree | d1b2227c7e47e8479c52bcb0e8490aa4bd5d1cb8 /installer/OpenSLX/OSExport/ExportType/NFS.pm | |
parent | * (hopefully) fixed problem with respect to wget repeatedly failing with (diff) | |
download | core-d561c9b1d1440185a5000c3d4df4395ba6de9a22.tar.gz core-d561c9b1d1440185a5000c3d4df4395ba6de9a22.tar.xz core-d561c9b1d1440185a5000c3d4df4395ba6de9a22.zip |
* changed handling of exports to drop support for having more than one
export for a given vendor-OS with the same export-type
* exports are now named according to the pattern <vendor-os>-<export-type>
(instead of <vendor-os>-<X> where X was a letter)
* change slxos-export to show the export-config-info after updating an
export, too (not only after creating a new export).
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1108 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSExport/ExportType/NFS.pm')
-rw-r--r-- | installer/OpenSLX/OSExport/ExportType/NFS.pm | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/installer/OpenSLX/OSExport/ExportType/NFS.pm b/installer/OpenSLX/OSExport/ExportType/NFS.pm index e3cd9cce..f63a2d23 100644 --- a/installer/OpenSLX/OSExport/ExportType/NFS.pm +++ b/installer/OpenSLX/OSExport/ExportType/NFS.pm @@ -44,7 +44,6 @@ sub exportVendorOS my $target = shift; $self->copyViaRsync($source, $target); - $self->addTargetToNfsExports($target); } sub purgeExport @@ -80,6 +79,20 @@ sub requiredFSMods return 'nfs'; } +sub showExportConfigInfo +{ + my $self = shift; + my $export = shift; + + print (('#' x 80)."\n"); + print _tr("Please make sure the following line is contained in /etc/exports\nin order to activate the NFS-export of this vendor-OS:\n\t%s\n", + "$self->{engine}->{'export-path'}\t*(ro,no_root_squash,async,no_subtree_check)"); + print (('#' x 80)."\n"); + +# TODO : add something a bit more clever here... +# my $exports = slurpFile("/etc/exports"); +} + ################################################################################ ### implementation methods ################################################################################ @@ -105,18 +118,4 @@ sub copyViaRsync } } -sub addTargetToNfsExports -{ - my $self = shift; - my $target = shift; - - print (('#' x 80)."\n"); - print _tr("Please make sure the following line is contained in /etc/exports\nin order to activate the NFS-export of this vendor-OS:\n\t%s\n", - "$self->{engine}->{'export-path'}\t*(ro,no_root_squash,async,no_subtree_check)"); - print (('#' x 80)."\n"); - -# TODO : add something a bit more clever here... -# my $exports = slurpFile("/etc/exports"); -} - 1; |