Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2018 03:47:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 231441] 12.0-ALPHA6 network does not start at boot
Message-ID:  <bug-231441-7501-10vQc7rbQ0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-231441-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-231441-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231441

--- Comment #10 from Yuri Pankov <yuripv@yuripv.net> ---
Apparently, I'm being stupid, and the use case here is NOT to load driver v=
ia
loader.conf and rather rely on devd to load it and bring up wlan interface.=
  To
make up for my mistake, I've taken a look at the source of problem here.

Looks like devd::expand_one() treats "$(var)" as a subcommand to be passed =
down
to shell -- this works correctly for the items in "action", but not so good=
 for
device matching.  In any case, removing parentheses from the wifi-driver-re=
gex
seems to work for me loading the if_run.ko, and creating wlan0:

diff --git a/sbin/devd/devd.conf b/sbin/devd/devd.conf
index 956a2970d436..c9deaf5dada9 100644
--- a/sbin/devd/devd.conf
+++ b/sbin/devd/devd.conf
@@ -19,13 +19,13 @@ options {
        # Setup some shorthand for regex that we use later in the file.
        #XXX Yes, these are gross -- imp
        set scsi-controller-regex
-               "(aac|adv|adw|aha|ahc|ahd|aic|amr|bt|ciss|dpt|\
+               "aac|adv|adw|aha|ahc|ahd|aic|amr|bt|ciss|dpt|\
                esp|ida|iir|ips|isp|mlx|mly|mpr|mps|mpt|ncr|ncv|nsp|stg|sym=
|\
-               trm)\
+               trm\
                [0-9]+";
        set wifi-driver-regex
-               "(ath|bwi|bwn|ipw|iwi|iwm|iwn|malo|mwl|ral|rsu|rtwn|rum|run=
|\
-               uath|upgt|ural|urtw|wi|wpi|wtap|zyd)[0-9]+";
+               "ath|bwi|bwn|ipw|iwi|iwm|iwn|malo|mwl|ral|rsu|rtwn|rum|run|\
+               uath|upgt|ural|urtw|wi|wpi|wtap|zyd[0-9]+";
 };

 # Note that the attach/detach with the highest value wins, so that one can

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231441-7501-10vQc7rbQ0>