[Bug 246506] rc.d scripts for lagg and devmatch are misordered at startup

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 16 16:33:00 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246506

            Bug ID: 246506
           Summary: rc.d scripts for lagg and devmatch are misordered at
                    startup
           Product: Base System
           Version: 12.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs at FreeBSD.org
          Reporter: cperciva at FreeBSD.org

The devmatch rc.d script now automatically loads kernel modules -- thank you
Warner! -- which makes configuring wifi adapters much easier.

However: The devmatch rc.d script runs very late in the boot process, which
makes it incompatible with using lagg to switch automatically between wired and
wireless networks
(https://www.freebsd.org/doc/handbook/network-aggregation.html#networking-lagg-wired-and-wireless)
-- if you try, you find that when lagg is created by /etc/rc.d/netif, it can't
attach the wifi adapter because said adapter doesn't have a driver loaded yet.

A workaround for this is "load the kernel modules via loader.conf and don't
rely on devmatch", but that's not the most user-friendly option.

A better fix might be to have lagg interfaces get created later in the boot
process; that might be problematic if devmatch needs a working network for some
reason.  I'm not sure why devmatch runs so late.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list