From b8d2bb380eb4df30287af4c41e9f0dd2cb67be1c Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 22 Jan 2008 20:03:00 +0000 Subject: * added support to the OSExport engine for determining the required tools, too (not only the kernel modules) - such that MakeInitRamFS::Engine can now find out which tools are *required* by a specific system and can copy those (and bail if they are not available) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1485 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSExport/BlockDevice/AoE.pm | 11 ++++++++++- installer/OpenSLX/OSExport/BlockDevice/Base.pm | 4 ++++ installer/OpenSLX/OSExport/BlockDevice/NBD.pm | 9 ++++++++- 3 files changed, 22 insertions(+), 2 deletions(-) (limited to 'installer/OpenSLX/OSExport/BlockDevice') diff --git a/installer/OpenSLX/OSExport/BlockDevice/AoE.pm b/installer/OpenSLX/OSExport/BlockDevice/AoE.pm index b0439a6d..9a7450f5 100644 --- a/installer/OpenSLX/OSExport/BlockDevice/AoE.pm +++ b/installer/OpenSLX/OSExport/BlockDevice/AoE.pm @@ -77,7 +77,16 @@ sub requiredBlockDeviceModules { my $self = shift; - return 'aoe'; + return qw( aoe ); +} + +sub requiredBlockDeviceTools +{ + my $self = shift; + + # TODO: is there any such tool? + + return; } sub showExportConfigInfo diff --git a/installer/OpenSLX/OSExport/BlockDevice/Base.pm b/installer/OpenSLX/OSExport/BlockDevice/Base.pm index 3650e8be..80868a80 100644 --- a/installer/OpenSLX/OSExport/BlockDevice/Base.pm +++ b/installer/OpenSLX/OSExport/BlockDevice/Base.pm @@ -44,6 +44,10 @@ sub requiredBlockDeviceModules { } +sub requiredBlockDeviceTools +{ +} + sub showExportConfigInfo { } diff --git a/installer/OpenSLX/OSExport/BlockDevice/NBD.pm b/installer/OpenSLX/OSExport/BlockDevice/NBD.pm index 1199a4dc..fff4b024 100644 --- a/installer/OpenSLX/OSExport/BlockDevice/NBD.pm +++ b/installer/OpenSLX/OSExport/BlockDevice/NBD.pm @@ -71,7 +71,14 @@ sub requiredBlockDeviceModules { my $self = shift; - return 'nbd'; + return qw( nbd ); +} + +sub requiredBlockDeviceTools +{ + my $self = shift; + + return qw( nbd-client ); } sub showExportConfigInfo -- cgit v1.2.3-55-g7522