summaryrefslogtreecommitdiffstats
path: root/boot-env/OpenSLX/BootEnvironment/PXE.pm
diff options
context:
space:
mode:
authorOliver Tappe2008-08-31 17:41:30 +0200
committerOliver Tappe2008-08-31 17:41:30 +0200
commit6c0f5af254eca9e3b093052e1cae898e3b1a7c38 (patch)
treefb7079c189360f412327c8a02a19d07d9e080196 /boot-env/OpenSLX/BootEnvironment/PXE.pm
parent* made bastians script compatible with stage1 chroot (diff)
downloadcore-6c0f5af254eca9e3b093052e1cae898e3b1a7c38.tar.gz
core-6c0f5af254eca9e3b093052e1cae898e3b1a7c38.tar.xz
core-6c0f5af254eca9e3b093052e1cae898e3b1a7c38.zip
* refactored slxconfig-demuxer and boot environment implementations such that
demuxing to more than a single boot environment is supported now * renamed boot environment CD to PREBOOT_CD git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2160 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'boot-env/OpenSLX/BootEnvironment/PXE.pm')
-rw-r--r--boot-env/OpenSLX/BootEnvironment/PXE.pm19
1 files changed, 19 insertions, 0 deletions
diff --git a/boot-env/OpenSLX/BootEnvironment/PXE.pm b/boot-env/OpenSLX/BootEnvironment/PXE.pm
index c362315f..25f2c77f 100644
--- a/boot-env/OpenSLX/BootEnvironment/PXE.pm
+++ b/boot-env/OpenSLX/BootEnvironment/PXE.pm
@@ -26,6 +26,25 @@ use OpenSLX::Basics;
use OpenSLX::MakeInitRamFS::Engine;
use OpenSLX::Utils;
+sub initialize
+{
+ my $self = shift;
+ my $params = shift;
+
+ return if !$self->SUPER::initialize($params);
+
+ $self->{'original-path'} = "$openslxConfig{'public-path'}/tftpboot";
+ $self->{'target-path'} = "$openslxConfig{'public-path'}/tftpboot.new";
+
+ if (!$self->{'dry-run'}) {
+ mkpath([$self->{'original-path'}]);
+ rmtree($self->{'target-path'});
+ mkpath("$self->{'target-path'}/client-config");
+ }
+
+ return 1;
+}
+
sub writeBootloaderMenuFor
{
my $self = shift;