diff options
author | Oliver Tappe | 2008-01-22 21:00:23 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-01-22 21:00:23 +0100 |
commit | ff2362f3622c5815b8a3e3606a29436b430a019c (patch) | |
tree | 4839d22035780fe1b129a115b4db5c7f8b7e0d1e /config-db | |
parent | * moved functionality of slxldd into a module (LibScanner), (diff) | |
download | core-ff2362f3622c5815b8a3e3606a29436b430a019c.tar.gz core-ff2362f3622c5815b8a3e3606a29436b430a019c.tar.xz core-ff2362f3622c5815b8a3e3606a29436b430a019c.zip |
* extract debug-level from kernel_params and add pass it
to MakeInitramFS::Engine
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1484 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db')
-rwxr-xr-x | config-db/slxconfig-demuxer | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index a7f2389a..d65b7dd9 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -567,6 +567,12 @@ sub makeInitRamFS 'slx-version' => $slxVersion, 'system-name' => $info->{name}, }; + # TODO: make this an explicit attribute, it's used at many places! + my $kernelParams = $info->{kernel_params} || ''; + if ($kernelParams =~ m{debug(?:=(\d+))?}) { + my $debugLevel = defined $1 ? $1 : '1'; + $params->{'debug-level'} = $debugLevel; + } my $makeInitRamFSEngine = OpenSLX::MakeInitRamFS::Engine->new($params); $makeInitRamFSEngine->execute() unless $dryRun; |