From: B Horn <[email protected]> The net module is a dependency of normal. So, it shouldn't be possible to unload the net. Though unregister variables hooks as a precaution. It also gets in line with unregistering the other net module hooks.
Signed-off-by: B Horn <[email protected]> Reviewed-by: Daniel Kiper <[email protected]> --- grub-core/net/net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grub-core/net/net.c b/grub-core/net/net.c index 8cad4fb6d..f69c67b64 100644 --- a/grub-core/net/net.c +++ b/grub-core/net/net.c @@ -2072,6 +2072,8 @@ GRUB_MOD_FINI(net) { grub_register_variable_hook ("net_default_server", 0, 0); grub_register_variable_hook ("pxe_default_server", 0, 0); + grub_register_variable_hook ("net_default_ip", 0, 0); + grub_register_variable_hook ("net_default_mac", 0, 0); grub_bootp_fini (); grub_dns_fini (); -- 2.11.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
