mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
lualoader: Return only argstr if with_kernel not requested
This commit is contained in:
parent
48230b85ac
commit
1d38e553eb
1 changed files with 7 additions and 3 deletions
|
|
@ -43,12 +43,16 @@ end
|
|||
-- This will also parse arguments to autoboot, but the with_kernel argument
|
||||
-- will need to be explicitly overwritten to false
|
||||
local parse_boot_args = function(argv, with_kernel)
|
||||
if #argv == 0 then
|
||||
return nil, ""
|
||||
end
|
||||
if with_kernel == nil then
|
||||
with_kernel = true
|
||||
end
|
||||
if #argv == 0 then
|
||||
if with_kernel then
|
||||
return nil, ""
|
||||
else
|
||||
return ""
|
||||
end
|
||||
end
|
||||
local kernel_name
|
||||
local argstr = ""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue