diff options
author | Sebastian Schmelzer | 2009-05-20 22:37:26 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2009-05-20 22:37:26 +0200 |
commit | daefb7d441eb88724ed4577b3beda5dc9a8a7c9a (patch) | |
tree | 89360a8e52779822710c4738f1a35e4ac27c4f19 /config-db/slxconfig-demuxer | |
parent | update preboot testing (diff) | |
download | core-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-x | config-db/slxconfig-demuxer | 22 |
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; |