summaryrefslogtreecommitdiffstats
path: root/config-db/slxconfig-demuxer
diff options
context:
space:
mode:
authorSebastian Schmelzer2009-05-20 22:37:26 +0200
committerSebastian Schmelzer2009-05-20 22:37:26 +0200
commitdaefb7d441eb88724ed4577b3beda5dc9a8a7c9a (patch)
tree89360a8e52779822710c4738f1a35e4ac27c4f19 /config-db/slxconfig-demuxer
parentupdate preboot testing (diff)
downloadcore-daefb7d441eb88724ed4577b3beda5dc9a8a7c9a.tar.gz
core-daefb7d441eb88724ed4577b3beda5dc9a8a7c9a.tar.xz
core-daefb7d441eb88724ed4577b3beda5dc9a8a7c9a.zip
name preboot "default.tgz" after client name
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2862 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-xconfig-db/slxconfig-demuxer22
1 files changed, 18 insertions, 4 deletions
diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer
index b3d597e5..df7264c1 100755
--- a/config-db/slxconfig-demuxer
+++ b/config-db/slxconfig-demuxer
@@ -15,6 +15,8 @@
# -----------------------------------------------------------------------------
use strict;
use warnings;
+use Switch;
+
my $abstract = q[
slxconfig-demuxer
@@ -485,10 +487,22 @@ sub writeClientConfigurationsForSystem
# name it is referred to in the openslx-config-DB:
my $externalClientID = externalIDForClient($client);
my $bootEnv = bootEnvironmentForType($bootType);
- createTarOfPath(
- $buildPath, "${externalClientID}.tgz",
- "$bootEnv->{'target-path'}/client-config/$externalSystemID"
- );
+ switch ($bootType) {
+ case 'pxe' {
+ createTarOfPath(
+ $buildPath, "${externalClientID}.tgz",
+ "$bootEnv->{'target-path'}/client-config/$externalSystemID"
+ );
+ }
+ case 'preboot-cd' {
+ # for preboot types
+ $cname = $client->{name};
+ createTarOfPath(
+ $buildPath, "${cname}.tgz",
+ "$bootEnv->{'target-path'}/client-config/$externalSystemID"
+ );
+ }
+ }
}
}
return;