diff options
Diffstat (limited to 'config-db/slxconfig-demuxer')
-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; |