From c44835d6a46e2febe548a522881f70254ad20db8 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Wed, 3 Jun 2009 21:56:14 +0000 Subject: 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 --- config-db/slxconfig-demuxer | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'config-db/slxconfig-demuxer') 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( -- cgit v1.2.3-55-g7522