summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Uhrig2008-02-17 01:55:00 +0100
committerVolker Uhrig2008-02-17 01:55:00 +0100
commit391a3936aea2baf556d07be2e98ade6e4b0a9ec2 (patch)
tree03a03f9593ab43c2907771ec92ba64c3d06a3e12
parentRefactored call-out to plugins when making the initramfs: (diff)
downloadcore-391a3936aea2baf556d07be2e98ade6e4b0a9ec2.tar.gz
core-391a3936aea2baf556d07be2e98ade6e4b0a9ec2.tar.xz
core-391a3936aea2baf556d07be2e98ade6e4b0a9ec2.zip
* Added example how you can copy files outside of the chroot
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1552 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r--os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm15
1 files changed, 14 insertions, 1 deletions
diff --git a/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm
index 252e8ae7..b45e62d3 100644
--- a/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm
+++ b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm
@@ -1,4 +1,4 @@
-# Copyright (c) 2007 - OpenSLX GmbH
+# Copyright (c) 2008 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -108,6 +108,19 @@ sub preInstallationPhase
# a temporary playground that will be cleaned up automatically
# in this example plugin, there's no need to do anything here ...
+
+ # uncomment the following if you need to copy files
+ ## 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 = ("file1", "file2");
+ #foreach my $file (@files) {
+ # copyFile("$pluginFilesPath/$file", "$pluginRepositoryPath");
+ #}
}
sub installationPhase