]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lualoader: unload upon kernel change if a kernel was previously loaded
authorkevans <kevans@FreeBSD.org>
Wed, 24 Oct 2018 02:02:37 +0000 (02:02 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 24 Oct 2018 02:02:37 +0000 (02:02 +0000)
commit9e5edf42ca4823dc1c489018065769434f6d0d70
tree7815db3c98e237ad6a4e1daddebf6b3ff154ee18
parentfa7d95e5667ed1b20f443738b4beaff854c7cb69
lualoader: unload upon kernel change if a kernel was previously loaded

In the majority of cases, a kernel is not loaded before we hit the menu.
However, if a password is set, we'll trigger autoboot and have loadelf'd
beforehand. We also need to take into account one dropping to the loader
prompt and twiddling with things manually; if they try to toggle through
kernels, we'll assume they mean it.

Reported by: trasz
MFC after:  3 days
stand/lua/menu.lua