From 972e2f375d155b7692513f232e2e29e33c188236 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 3 Oct 2016 14:13:02 +0200 Subject: [PATCH] rc: load vital modules on kernel boot --- src/etc/rc.loader.d/20-modules | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/etc/rc.loader.d/20-modules b/src/etc/rc.loader.d/20-modules index 71e895f0a..a6f12f70e 100644 --- a/src/etc/rc.loader.d/20-modules +++ b/src/etc/rc.loader.d/20-modules @@ -1,5 +1,21 @@ +# Vital modules that are not in FreeBSD generic +# will be loaded on boot, which makes races with +# settings impossible as the kernel boots up +# in a consistent way as it looks like all the +# modules were compiled into the kernel. carp_load="YES" if_bridge_load="YES" +if_enc_load="YES" +if_gif_load="YES" +if_gre_load="YES" +if_lagg_load="YES" +if_sft_load="YES" +if_tap_load="YES" +if_tun_load="YES" +if_vlan_load="YES" +pf_load="YES" +pflog_load="YES" +pfsync_load="YES" # The netgraph(4) framework is loaded here # for backwards compat with the pre-16.7 # kernel configuration that compiled all of