Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 390955

Summary: add 'after dbus' to /etc/init.d/net.lo for net.wlan0 autoconnect
Product: Gentoo Linux Reporter: David J Cozatt <djcozatt>
Component: [OLD] baselayoutAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 394205    
Attachments: patch in plain text
patch obsoletes previous
net.dbus.patch
after-dbus.patch
rc.log

Description David J Cozatt 2011-11-18 22:06:07 UTC
add 'after dbus' to this script please. I tried this after seeing it added to a recent update to /etc/init.d/xdm and it allowed me to autoconnect at bootup for the current versions of wireless-tools and wpa_supplicant. Prior to the addition I had to restart the daemon to connect from a booted system

Reproducible: Always
Comment 1 David J Cozatt 2011-11-18 22:18:58 UTC
penguin4 david # emerge --info wpa_supplicant
Portage 2.1.10.35 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.1.1-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.1-gentoo-x86_64-AMD_Phenom-tm-_II_X4_B50_Processor-with-gentoo-2.1
Timestamp of tree: Fri, 18 Nov 2011 01:15:01 +0000
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories:

gentoo
    location: /usr/portage
    sync: rsync://rsync26.us.gentoo.org/gentoo-portage
    priority: -1000

x-local-overlay
    location: /home/david/local-overlay
    masters: gentoo
    priority: 0

ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="hda-intel"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode multilib"
CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -ggdb -D_FORTIFY_SOURCE=2 -mtune=amdfam10"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules"
COLORTERM="gnome-terminal"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-march=native -O2 -ggdb -D_FORTIFY_SOURCE=2 -mtune=amdfam10"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="gnome"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS=" -q --verbose --newuse --deep"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS="-march=native -O2 -ggdb -D_FORTIFY_SOURCE=2 -mtune=amdfam10"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 3 -T 60 --passive-ftp --timeout=15 -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec sftp -P \${port} \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
FFLAGS="-march=native -O2 -ggdb -D_FORTIFY_SOURCE=2 -mtune=amdfam10"
GCC_SPECS=""
GDK_USE_XFT="1"
GDMSESSION="gnome"
GDM_LANG="en_US.UTF-8"
GDM_XSERVER_LOCATION="local"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo"
GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
GNOME_KEYRING_CONTROL="/tmp/keyring-R0AdnR"
GNOME_KEYRING_PID="2769"
GPG_AGENT_INFO="/tmp/keyring-R0AdnR/gpg:0:1"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx"
GRUB_PLATFORMS=""
GSETTINGS_BACKEND="dconf"
HG="/usr/bin/hg"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info:/usr/share/info/emacs-23"
INPUT_DEVICES="evdev keyboard mouse"
KERNEL="linux"
LANG="en_US.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="en en_US en_GB"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j5 --load-average"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OPENGL_PROFILE="xorg-x11"
ORBIT_SOCKETDIR="/tmp/orbit-root"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3"
PHP_TARGETS="php5-3"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn info error log qa"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="mail:warn,error syslog:* save save_summary"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p ${PID}"
PORTAGE_NICENESS="3"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_QUIET="1"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SANDBOX_COMPAT_LEVEL="16"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/david/local-overlay"
PORT_LOGDIR="/var/log/portage"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/david"
PYTHONDONTWRITEBYTECODE="1"
RESUMECOMMAND="/usr/bin/wget -c -t 3 -T 60 --passive-ftp --timeout=30 -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18 ree18"
SESSION_MANAGER="local/penguin4:@/tmp/.ICE-unix/2849,unix/penguin4:/tmp/.ICE-unix/2849"
SHELL="/bin/bash"
SHLVL="3"
SSH_AGENT_PID="2866"
SSH_AUTH_SOCK="/tmp/keyring-R0AdnR/ssh"
SYMLINK_LIB="yes"
SYNC="rsync://rsync26.us.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo caps cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gallium gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk2 iconv introspection ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit polkit ppds pppd pulseaudio qt3support qt4 readline ruby sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ree18" USERLAND="GNU" VIDEO_CARDS="radeon r300 r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USER="root"
USERLAND="GNU"
USERNAME="david"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS DRACUT_MODULES DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS PHP_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
VIDEO_CARDS="radeon r300 r600"
WINDOWID="48234499"
WINDOWPATH="7"
XAUTHORITY="/tmp/libgksu-G9vSjM/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"
XDG_MENU_PREFIX="gnome-"
XDG_SESSION_COOKIE="8a665d47e8062fb1b22714f200000009-1321656653.603236-652467129"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
_="/usr/bin/emerge"

=================================================================
                        Package Settings
=================================================================

net-wireless/wpa_supplicant-0.7.3-r5 was built with the following:
USE="dbus madwifi (multilib) qt4 readline ssl -debug -eap-sim -fasteap -gnutls (-ps3) -wimax -wps"
Comment 2 David J Cozatt 2011-11-18 22:32:01 UTC
Created attachment 293039 [details, diff]
patch in plain text
Comment 3 David J Cozatt 2011-11-18 22:54:39 UTC
Created attachment 293041 [details, diff]
patch obsoletes previous
Comment 4 William Hubbs gentoo-dev 2011-12-11 19:55:09 UTC
@robbat2:

Is it safe to add this as the patch suggests for all network interfaces,
or should we make it only affective for wlan* interfaces? I would tend
to vote for the second option.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-11 19:59:30 UTC
WilliamH:
I think dbus needs to come up after lo, but before the other devices. I'm not sure if this patch is the best way to do it.
Comment 6 William Hubbs gentoo-dev 2011-12-11 20:18:02 UTC
Created attachment 295489 [details]
net.dbus.patch

@robbat2:

How about this patch? That way we only add this for wireless interfaces.

William
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-11 20:19:23 UTC
the sole problem with this is wireless devices that show up at ethX.
Comment 8 William Hubbs gentoo-dev 2011-12-11 20:50:33 UTC
@robbat2:

Ok, what if I make the case read:  eth*|wlan*, does that fix the issue
without causing issues for other interfaces that come up as ethx?
Comment 9 David J Cozatt 2011-12-12 14:01:15 UTC
Would it be simpler to just let net.lo stand alone and create a new file for the other connections? As it is seems like when any net interface is called in openrc  net.lo runs again as well. 

This gave me wlan0 at startup on 0.9.6  On  0.9.4 no joy. Yet to be tested on 0.9.7 updated just haven't rebooted with the dbus dep since I went with default configs at latest update.
Comment 10 David J Cozatt 2011-12-12 14:27:04 UTC
tested the suggested method above and just adding 'after dbus' before 'provide net' both methods did not create wlan0 at startup. So only managed to get it with 0.9.6
Comment 11 William Hubbs gentoo-dev 2011-12-12 17:41:41 UTC
(In reply to comment #9)
> Would it be simpler to just let net.lo stand alone and create a new file for
> the other connections? As it is seems like when any net interface is called in
> openrc  net.lo runs again as well. 

No, I don't see us separating net.lo into its own script; that would actually make things more difficult to maintain I think.

(In reply to comment #10)
> tested the suggested method above and just adding 'after dbus' before 'provide
> net' both methods did not create wlan0 at startup. So only managed to get it
> with 0.9.6

Let me generate and attach a quick patch with the method I'm suggesting, just to be sure we are talking about the same changes.
Comment 12 William Hubbs gentoo-dev 2011-12-12 17:59:11 UTC
Created attachment 295581 [details]
after-dbus.patch

David,

this is the method I am suggesting. Can you apply this patch and let me
know what happens?
Comment 13 David J Cozatt 2011-12-12 20:58:03 UTC
regarding comment 12 I had no luck with that patch and openrc 0.9.7

wireless works fine if I start net.wlan0 from the shell after booting.

[   92.739194] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   95.975711] wlan0: authenticate with xx:xx:xx:xx:xx:xx (try 1)
[   95.978023] wlan0: authenticated
[   96.660774] wlan0: associate with xx:xx:xx:xx:xx:xx (try 1)
[   96.663465] wlan0: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x411 status=0 aid=3)
[   96.663472] wlan0: associated
[   96.688266] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  107.533419] wlan0: no IPv6 routers present

penguin4 david # dmesg | grep ath
[    5.553626] ath9k_htc 1-1:1.0: usb_probe_interface
[    5.553629] ath9k_htc 1-1:1.0: usb_probe_interface - got id
[    6.230181] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[    6.470093] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
[    6.784848] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.3
[    6.784850] ath: EEPROM regdomain: 0x60
[    6.784852] ath: EEPROM indicates we should expect a direct regpair map
[    6.784855] ath: Country alpha2 being used: 00
[    6.784856] ath: Regpair used: 0x60
[    6.788771] Registered led device: ath9k_htc-phy0
[    6.788773] usb 1-1: ath9k_htc: USB layer initialized
[    6.788787] usbcore: registered new interface driver ath9k_htc
Comment 14 William Hubbs gentoo-dev 2011-12-12 21:35:27 UTC
(In reply to comment #13)
> regarding comment 12 I had no luck with that patch and openrc 0.9.7

I need to see, with that patch applied, whether your wireless interface attempts to start after dbus and what messages you get when it does.

Please apply the patch, then uncomment this line in /etc/rc.conf:

rc_logger="YES"

Then reboot and after you have rebooted, attach /var/log/rc.log to this bug.

Thanks,

William
Comment 15 David J Cozatt 2011-12-12 23:39:26 UTC
Created attachment 295619 [details]
rc.log

My bad it does work. Behaving properly now.
Comment 16 William Hubbs gentoo-dev 2011-12-13 03:37:20 UTC
I went with a slight variant of this patch. Now, all interfaces except
the loopback will start after dbus.

This is in commit 46b96eb.
Comment 17 Benda Xu gentoo-dev 2012-08-02 07:44:00 UTC
I'd like to reopen this bug.

There is one case where dbus, which start's from /usr, resides in a nfs mount.

the dependence(use & after) tree becomes

netmount -> net.eth0 -> dbus -> netmount

Presently as a default, dbus just needs localmount, 

and David J Cozatt's stituation (replying on dbus to start wireless) is reasonable, too.

There seems to be no global solution for all the cases with present deptree.
Comment 18 William Hubbs gentoo-dev 2012-08-02 15:28:27 UTC
I think you are actually talking about two bugs here.

1) the dbus init script may need to be modified to need netmount if /usr
is a network file system.

2) The network scripts may need to be looked at again, but this should
be on a separate bug. We need to figure out what the most common case
is.

Thanks,

William