]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lualoader: Don't draw loader menu with autoboot_delay=-1
authorKyle Evans <kevans@FreeBSD.org>
Fri, 5 Oct 2018 17:07:10 +0000 (17:07 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 5 Oct 2018 17:07:10 +0000 (17:07 +0000)
commitc84dbc532904f2342f06fed592c384fd0c6436f5
treed28e93a42bbd71dbee68269fd2a31e89ae5ba0c1
parent896571557d2b6013b8fadade0a05b4a802f365e5
lualoader: Don't draw loader menu with autoboot_delay=-1

This was mostly a cosmetic issue. autoboot_delay=-1 is documented to bypass
the loader menu and immediately execute the boot command, but lualoader
would draw the menu and immediately execute the boot command. No interaction
was possible with the menu.

The fix lifts autoboot_delay processing out of menu.autoboot, which now
takes a delay and does nothing if no delay is specified. This lines up with
my expectations of menu.autoboot's usage from a third party, which may
want more control over the process than the default behavior.

PR: 231610
Approved by: re (gjb)
stand/lua/menu.lua