diff options
author | Sebastian | 2012-04-26 12:33:53 +0200 |
---|---|---|
committer | Sebastian | 2012-04-26 12:33:53 +0200 |
commit | d97cfe2ab23ec6aaded631269fec5afae4f9330e (patch) | |
tree | 321e3ee227869eff2dcde9643c1db80292140889 /src/boot-env | |
parent | fixes for vmware player 4.x / vmware workstation 8.x (diff) | |
download | core-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.pm | 9 |
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; |