diff options
author | Oliver Tappe | 2007-04-05 17:32:18 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-04-05 17:32:18 +0200 |
commit | 6858c4d6acf6dbf684adf5183cebb1f5263f336d (patch) | |
tree | 292fc9bdac7167272965710acc47174785d3793e /config-db/slxconfig-demuxer | |
parent | * renamed '/etc/sysconfig/slxconfig' to '/etc/sysconfig/slxsystem.conf' in or... (diff) | |
download | core-6858c4d6acf6dbf684adf5183cebb1f5263f336d.tar.gz core-6858c4d6acf6dbf684adf5183cebb1f5263f336d.tar.xz core-6858c4d6acf6dbf684adf5183cebb1f5263f336d.zip |
* 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
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-x | config-db/slxconfig-demuxer | 11 |
1 files changed, 3 insertions, 8 deletions
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 |