From 7043bffef52e7f7404a09d4de3919de915e5de70 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 1 Sep 2008 21:51:20 +0000 Subject: * implemented PREBOOT_CD boot environment that creates an appropriate ISO image git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2181 95ad53e4-c205-0410-b2fa-d234c58c8868 --- config-db/slxconfig-demuxer | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'config-db/slxconfig-demuxer') diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 3803a65c..7234b762 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -110,8 +110,6 @@ if (createConfigFolderForDefaultSystem()) { ); } -chomp(my $slxVersion = qx{slxversion}); - # protect against parallel executions of this script my $criticalSection = OpenSLX::ScopedResource->new({ name => 'osplugin::session', @@ -575,9 +573,8 @@ sub createBootEnvironmentsForSystem vlog(0, _tr("creating boot environment for $bootType")); my $bootEnv = bootEnvironmentForType($bootType); - $initramfsCount += $bootEnv->writeFilesRequiredForBooting( - $info, $buildPath, $slxVersion - ); + $initramfsCount + += $bootEnv->writeFilesRequiredForBooting($info, $buildPath); my $systemPath = "$bootEnv->{'target-path'}/client-config/$info->{'external-id'}"; @@ -686,6 +683,8 @@ sub writeConfigurations $systemErrCount++; } } + my $imageBaseDir = "$openslxConfig{'public-path'}/images"; + rmtree($imageBaseDir) unless $option{dryRun}; writeBootloaderMenus(@infos); if (defined $option{dhcpType}) { writeDhcpConfig(); -- cgit v1.2.3-55-g7522