lualoader: Return only argstr if with_kernel not requested

This commit is contained in:
Kyle Evans 2018-02-21 03:06:36 +00:00
parent 48230b85ac
commit 1d38e553eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329693

View File

@ -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 = ""