From 6c0f5af254eca9e3b093052e1cae898e3b1a7c38 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 31 Aug 2008 15:41:30 +0000 Subject: * 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 --- boot-env/OpenSLX/BootEnvironment/PXE.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'boot-env/OpenSLX/BootEnvironment/PXE.pm') 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; -- cgit v1.2.3-55-g7522