summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmware/OpenSLX/OSPlugin
diff options
context:
space:
mode:
authorVolker Uhrig2008-02-17 03:28:41 +0100
committerVolker Uhrig2008-02-17 03:28:41 +0100
commitda8b2bf2b5860698f71372c22b473dba8fcb18b4 (patch)
tree5da67e630f9da8bcf853bd90bcdb557bbd9b5202 /os-plugins/plugins/vmware/OpenSLX/OSPlugin
parent* Added example how you can copy files outside of the chroot (diff)
downloadcore-da8b2bf2b5860698f71372c22b473dba8fcb18b4.tar.gz
core-da8b2bf2b5860698f71372c22b473dba8fcb18b4.tar.xz
core-da8b2bf2b5860698f71372c22b473dba8fcb18b4.zip
* cleaned up code
* fixed tabs * plugin includes now all needed files. they will get copied from the plugin dir git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1553 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/OpenSLX/OSPlugin')
-rw-r--r--os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
index d3d5375a..048f0f38 100644
--- a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
+++ b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
@@ -79,6 +79,30 @@ sub getAttrInfo
};
}
+sub preInstallationPhase
+{ # called before chrooting into vendor-OS root, should be used if any files
+ # have to be downloaded outside of the chroot (which might be necessary
+ # if the required files can't be installed via the meta-packager)
+ my $self = shift;
+ my $pluginRepositoryPath = shift;
+ # the folder where the stage1-plugin should store all files
+ # required by the corresponding stage3 runlevel script
+ my $pluginTempPath = shift;
+ # a temporary playground that will be cleaned up automatically
+
+ # get path of files we need to install
+ my $pluginName = $self->{'name'};
+ my $pluginFilesPath
+ = "$openslxConfig{'base-path'}/lib/plugins/$pluginName/files";
+
+ # copy all needed files now
+ my @files = ("dhcpd.conf", "nat.conf", "nvram.5.0", "runvmware-v2");
+ foreach my $file (@files) {
+ copyFile("$pluginFilesPath/$file", "$pluginRepositoryPath");
+ }
+}
+
+
sub suggestAdditionalKernelModules
{
my $self = shift;