summaryrefslogtreecommitdiffstats
path: root/config-db/slxconfig-demuxer
diff options
context:
space:
mode:
authorOliver Tappe2009-06-03 23:56:14 +0200
committerOliver Tappe2009-06-03 23:56:14 +0200
commitc44835d6a46e2febe548a522881f70254ad20db8 (patch)
treeff2b694c55d1e989fb267494a31b90ecc6b8d823 /config-db/slxconfig-demuxer
parentnew modified themes, hopefully wirking with kdm4 (and kdm3) (diff)
downloadcore-c44835d6a46e2febe548a522881f70254ad20db8.tar.gz
core-c44835d6a46e2febe548a522881f70254ad20db8.tar.xz
core-c44835d6a46e2febe548a522881f70254ad20db8.zip
Refactored implementation of preboot evironment to support the creation
of several preboot media from a single preboot client: * added new client attribute preboot_media which holds the list of media that shall be created for that preboot client (currently, only 'cd' is known) * the boot_type value 'preboot_cd' has been renamed to 'preboot' * db-schema has been bumped to 0.36 to adjust the db-contents to the new expectations * adjusted config-demuxer accordingly git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2929 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-xconfig-db/slxconfig-demuxer14
1 files changed, 9 insertions, 5 deletions
diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer
index 9cbc03c1..e812dd93 100755
--- a/config-db/slxconfig-demuxer
+++ b/config-db/slxconfig-demuxer
@@ -324,13 +324,17 @@ sub createTarOfPath
sub bootEnvironmentForType
{
- my $bootType = shift || 'pxe';
+ my $bootTypeIn = shift || 'pxe';
my %bootTypeMap = (
- 'pxe' => 'PXE',
- 'preboot-cd' => 'PrebootCD',
+ 'pxe' => 'PXE',
+ 'preboot' => 'Preboot',
);
- $bootType = $bootTypeMap{lc($bootType)};
+ my $bootType = $bootTypeMap{lc($bootTypeIn)}
+ or die _tr(
+ "'%s' is not one of the supported boot-types (pxe,preboot)",
+ $bootTypeIn
+ );
if (!$bootEnvMap{$bootType}) {
my $bootEnv = instantiateClass("OpenSLX::BootEnvironment::$bootType");
@@ -494,7 +498,7 @@ sub writeClientConfigurationsForSystem
"$bootEnv->{'target-path'}/client-config/$externalSystemID"
);
}
- case 'preboot-cd' {
+ case 'preboot' {
# for preboot types
my $cname = $client->{name};
createTarOfPath(