From e437b8813f2a84ccffa3a75ba1f534b38ce72b9c Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Tue, 6 Apr 2010 20:01:24 +0200 Subject: cumulative commit of local branch, many changes regarding virtualization --- boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm') diff --git a/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm b/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm index ca4764ca..cac92b37 100644 --- a/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm +++ b/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm @@ -383,13 +383,21 @@ sub _writeSlxSystemConf # check if default directories available and copy them to /etc my $defaultDirConfig = "$self->{'root-path'}/etc/opt/openslx/openslx.conf"; my $configTargetPath = "$self->{'build-path'}/etc"; - + my $defaultConfVer = slurpFile("$defaultDirConfig"); + my $actConfVer = "Version 0.2"; + if (-r $defaultDirConfig) { $self->addCMD("cp -p $defaultDirConfig $configTargetPath/"); + if ($defaultConfVer =~ m{$actConfVer}) { + warn _tr( + "Your version of default dir file (openslx.conf) is to old!\n". + "Eventually the system won't work.\n" . + "Please run install, update or clone of this system again!\n"); + } } else { die _tr( - "No default directories defined!\n" . - "Please run install, update or clone of this system again!\n"); + "No default directories defined!\n" . + "Please run install, update or clone of this system again!\n"); } return; -- cgit v1.2.3-55-g7522