summaryrefslogtreecommitdiffstats
path: root/config-db/slxconfig-demuxer
diff options
context:
space:
mode:
authorOliver Tappe2007-08-01 20:27:48 +0200
committerOliver Tappe2007-08-01 20:27:48 +0200
commit57dcbe7eb620ffff1616e8a1f60110d45f1338c0 (patch)
tree2adfe7d5fbc0892aa5938bef3fa539818662273f /config-db/slxconfig-demuxer
parentSmall bug in servconfig fixed ... (diff)
downloadcore-57dcbe7eb620ffff1616e8a1f60110d45f1338c0.tar.gz
core-57dcbe7eb620ffff1616e8a1f60110d45f1338c0.tar.xz
core-57dcbe7eb620ffff1616e8a1f60110d45f1338c0.zip
* 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
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-xconfig-db/slxconfig-demuxer6
1 files changed, 3 insertions, 3 deletions
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}";