From 6858c4d6acf6dbf684adf5183cebb1f5263f336d Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 5 Apr 2007 15:32:18 +0000 Subject: * added more precise errors for inconsistent DB states (if the export or vendor-OS a system refers to doesn't exist) * some cleanup git-svn-id: http://svn.openslx.org/svn/openslx/trunk@866 95ad53e4-c205-0410-b2fa-d234c58c8868 --- config-db/slxconfig-demuxer | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'config-db/slxconfig-demuxer') diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 7b854918..d1c2c11b 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -302,9 +302,6 @@ sub generateInitalRamFS vlog 1, _tr('generating initialramfs %s/initramfs', $pxeSysPath); my $cmd = "$openslxConfig{'bin-path'}/slxmkramfs "; - if ($setup->{ramfs_use_glibc}) { - $cmd .= '-g '; - } if ($setup->{ramfs_use_busybox}) { $cmd .= '-b '; } @@ -358,13 +355,11 @@ sub writeSystemPXEFiles { my $system = shift; - my $pxePath = "$tftpbootPath/pxe"; - - my $export = $openslxDB->fetchExportByID($system->{export_id}); - my $vendorOS = $openslxDB->fetchVendorOSByID($export->{vendor_os_id}); my $info = $openslxDB->aggregatedSystemFileInfoFor($system); my $kernelFile = $info->{'kernel-file'}; my $extSysID = externalIDForSystem($info); + + my $pxePath = "$tftpbootPath/pxe"; my $pxeSysPath = "$pxePath/$extSysID"; if (-e $pxeSysPath) { die _tr('PXE-system %s already exists!', $pxeSysPath); @@ -373,7 +368,7 @@ sub writeSystemPXEFiles vlog 1, _tr('copying kernel %s to %s/kernel', $kernelFile, $pxeSysPath); system(qq[cp -p "$kernelFile" $pxeSysPath/kernel]) unless $dryRun; - generateInitalRamFS($info, $vendorOS, $pxeSysPath); + generateInitalRamFS($info, $info->{'vendor-os'}, $pxeSysPath); } sub writeDhcpConfig -- cgit v1.2.3-55-g7522