lualoader: Return only argstr if with_kernel not requested
This commit is contained in:
parent
48230b85ac
commit
1d38e553eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329693
@ -43,12 +43,16 @@ end
|
|||||||
-- This will also parse arguments to autoboot, but the with_kernel argument
|
-- This will also parse arguments to autoboot, but the with_kernel argument
|
||||||
-- will need to be explicitly overwritten to false
|
-- will need to be explicitly overwritten to false
|
||||||
local parse_boot_args = function(argv, with_kernel)
|
local parse_boot_args = function(argv, with_kernel)
|
||||||
if #argv == 0 then
|
|
||||||
return nil, ""
|
|
||||||
end
|
|
||||||
if with_kernel == nil then
|
if with_kernel == nil then
|
||||||
with_kernel = true
|
with_kernel = true
|
||||||
end
|
end
|
||||||
|
if #argv == 0 then
|
||||||
|
if with_kernel then
|
||||||
|
return nil, ""
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
end
|
||||||
|
end
|
||||||
local kernel_name
|
local kernel_name
|
||||||
local argstr = ""
|
local argstr = ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user