summaryrefslogtreecommitdiffstats
path: root/src/boot-env/OpenSLX/BootEnvironment/PXE.pm
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot-env/OpenSLX/BootEnvironment/PXE.pm')
-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;