From 57dcbe7eb620ffff1616e8a1f60110d45f1338c0 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Wed, 1 Aug 2007 18:27:48 +0000 Subject: * ConfigDB-objects now reuse active DB-connections in order to reduce the number of times any script asks for the db-password (and to reduce the number of used resources, too). * minor cleanup in slxconfig-demuxer git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1302 95ad53e4-c205-0410-b2fa-d234c58c8868 --- config-db/slxconfig-demuxer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config-db/slxconfig-demuxer') diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index c3220ec8..3720e4e4 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -423,12 +423,12 @@ sub generateInitalRamFS vlog(1, _tr('generating initialramfs %s/initramfs', $pxeVendorOSPath)); my $cmd = "$openslxConfig{'base-path'}/bin/mkdxsinitrd "; - if (length($info->{attr_ramfs_nicmods}) > 0) { + if ($info->{attr_ramfs_nicmods}) { $cmd .= qq[-n "$info->{attr_ramfs_nicmods}" ]; } - my $fsMods = $info->{attr_ramfs_fsmods}; + my $fsMods = $info->{attr_ramfs_fsmods} || ''; $fsMods .= ' ' . $osExportEngine->requiredFSMods(); - if (length($fsMods) > 0) { + if ($fsMods) { $cmd .= qq[-f "$fsMods" ]; } my $rootPath = "$openslxConfig{'private-path'}/stage1/$vendorOS->{name}"; -- cgit v1.2.3-55-g7522