diff options
author | Oliver Tappe | 2009-03-06 17:51:09 +0100 |
---|---|---|
committer | Oliver Tappe | 2009-03-06 17:51:09 +0100 |
commit | 16f49079d7c3adf2cac8bdca3ae726036ef9c735 (patch) | |
tree | f44ae4a955dc072c8a4fd07b953b0e750026cdf6 /config-db/slxconfig-demuxer | |
parent | Fix in run-virt.sh - the config.xml generation issue is still to be (diff) | |
download | core-16f49079d7c3adf2cac8bdca3ae726036ef9c735.tar.gz core-16f49079d7c3adf2cac8bdca3ae726036ef9c735.tar.xz core-16f49079d7c3adf2cac8bdca3ae726036ef9c735.zip |
closing #393:
* added check to config demuxer that will print a warning if the slxversions
of the uclibc-rootfs of a vendor-OS does not match the current one
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2695 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-x | config-db/slxconfig-demuxer | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 21c95ae9..00b269fd 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -623,6 +623,20 @@ sub writeSystemConfiguration ) ); + # check if uclibc-rootfs in corresponding vendor-OS matches the current + # version and add a warning if it does not: + my $uclibcVersionPath + = "$openslxConfig{'private-path'}/stage1/$info->{'vendor-os'}->{name}/opt/openslx/uclib-rootfs.version"; + chomp(my $uclibcVersion = slurpFile($uclibcVersionPath)); + chomp(my $currVersion = qx{slxversion}); + if ($uclibcVersion ne $currVersion) { + warn _tr( + "uclibc-rootfs for system '%s' is not up-to-date - consider updating the vendor-OS!", + $info->{name}, $uclibcVersion, $currVersion + ); + } + + my $attrProblems = OpenSLX::AttributeRoster->findProblematicValues( $info->{attrs}, $info->{'vendor-os'}->{name}, $info->{'installed-plugins'} |