summaryrefslogtreecommitdiffstats
path: root/src/boot-env
diff options
context:
space:
mode:
authorSebastian2012-04-26 12:33:53 +0200
committerSebastian2012-04-26 12:33:53 +0200
commitd97cfe2ab23ec6aaded631269fec5afae4f9330e (patch)
tree321e3ee227869eff2dcde9643c1db80292140889 /src/boot-env
parentfixes for vmware player 4.x / vmware workstation 8.x (diff)
downloadcore-d97cfe2ab23ec6aaded631269fec5afae4f9330e.tar.gz
core-d97cfe2ab23ec6aaded631269fec5afae4f9330e.tar.xz
core-d97cfe2ab23ec6aaded631269fec5afae4f9330e.zip
add support of static data copied to ../tftpboot on every demuxer run
Diffstat (limited to 'src/boot-env')
-rw-r--r--src/boot-env/OpenSLX/BootEnvironment/PXE.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/boot-env/OpenSLX/BootEnvironment/PXE.pm b/src/boot-env/OpenSLX/BootEnvironment/PXE.pm
index 251bd9bd..4ab04678 100644
--- a/src/boot-env/OpenSLX/BootEnvironment/PXE.pm
+++ b/src/boot-env/OpenSLX/BootEnvironment/PXE.pm
@@ -286,6 +286,7 @@ sub _prepareBootloaderConfigFolder
my $basePath = $openslxConfig{'base-path'};
my $pxePath = $self->{'target-path'};
my $pxeConfigPath = "$pxePath/pxelinux.cfg";
+ my $configPath = $openslxConfig{'config-path'};
if (!$self->{'dry-run'}) {
rmtree($pxeConfigPath);
@@ -306,6 +307,14 @@ sub _prepareBootloaderConfigFolder
qq[cp -p "$ipxeFile" $pxePath/]
);
}
+ #copy static content to tftproot
+ my @staticFiles = <$configPath/boot-env/syslinux/static/*>;
+ foreach my $staticFile (@staticFiles) {
+ slxsystem(
+ qq[cp -p "$staticFile" $pxePath/]
+ );
+ }
+
}
$self->{preparedBootloaderConfigFolder} = 1;