HomeFreeBSD

lualoader: unload upon kernel change if a kernel was previously loaded

Description

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

Details

Provenance
kevansAuthored on Oct 24 2018, 2:02 AM
Parents
rG13d640d37660: pf: Fix copy/paste error in IPv6 address rewriting
Branches
Unknown
Tags
Unknown