mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
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
|
||||
-- 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