From d97cfe2ab23ec6aaded631269fec5afae4f9330e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 26 Apr 2012 12:33:53 +0200 Subject: add support of static data copied to ../tftpboot on every demuxer run --- src/boot-env/OpenSLX/BootEnvironment/PXE.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-55-g7522