Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144431 - sshd does not start with ifplugd on eth0
Summary: sshd does not start with ifplugd on eth0
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 143887
Blocks:
  Show dependency tree
 
Reported: 2006-08-19 09:43 UTC by Sebastian Bergmann (RETIRED)
Modified: 2006-08-22 02:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/conf.d/net (net,21 bytes, text/plain)
2006-08-20 01:20 UTC, Sebastian Bergmann (RETIRED)
Details
/etc/conf.d/rc (rc,8.49 KB, text/plain)
2006-08-20 01:21 UTC, Sebastian Bergmann (RETIRED)
Details
/var/log/boot.msg (boot.msg,1.10 KB, text/plain)
2006-08-21 06:51 UTC, Sebastian Bergmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Bergmann (RETIRED) gentoo-dev 2006-08-19 09:43:02 UTC
- I have sshd in my default runlevel.
- I am using ifplugd to manage my two network interfaces
  (eth0: wired, eth1: wireless)
- When I boot my notebook with an Ethernet cable attached,
  sshd is started during boot.
- When I boot my notebook with no Ethernet cable attached,
  sshd is not started during boot, although a wireless connection
  is established. Running /etc/init.d/sshs start manually works fine,
  though.

-- 

Portage 2.1.1_pre5-r2 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r5 i686)
=================================================================
System uname: 2.6.17-gentoo-r5 i686 Genuine Intel(R) CPU           L2400  @ 1.66GHz
Gentoo Base System version 1.12.4
Last Sync: Sat, 19 Aug 2006 15:30:09 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms sign strict"
GENTOO_MIRRORS="http://mirror.gentoo.no/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gnome-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa asf avi berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo cdr cli crypt cups dbus divx4linux dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode exif fame firefox flac foomaticdb fortran gaim galago gdbm gif glitz gnome gpm graphviz gstreamer gtk gtk2 hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse iproute2 ipv6 isdnlog java jpeg kdeenablefinal kdehiddenvisibility kernel_linux libg++ libnotify libsexy libwww lzo mad matroska mikmod mjpeg mmx mng mono moznocompose moznoirc moznomail mozsvg mp3 mpeg ncurses nls nomotif nptl nsplugin ogg oggvorbis opengl oss pam pam_console pcre pdf pdflib perl png pppd python quicktime readline reflection samba session smp spell spl sse sse2 ssl startup-notification svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_i810 vorbis win32codecs wmf xml xml2 xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2006-08-20 00:47:17 UTC
post your /etc/conf.d/net and /etc/conf.d/rc files
Comment 2 Sebastian Bergmann (RETIRED) gentoo-dev 2006-08-20 01:20:44 UTC
Created attachment 94666 [details]
/etc/conf.d/net
Comment 3 Sebastian Bergmann (RETIRED) gentoo-dev 2006-08-20 01:21:17 UTC
Created attachment 94667 [details]
/etc/conf.d/rc
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-08-20 05:36:00 UTC
Are both net.eth0 and net.eth1 in the default runlevel?

Also, ifplugd is very bad with wireless - use wpa_supplicant instead.
Comment 5 Sebastian Bergmann (RETIRED) gentoo-dev 2006-08-20 06:39:53 UTC
No, I have neither net.eth0 nor net.eth1 in the default runlevel. I thought that this was not needed.
Comment 6 Roy Marples (RETIRED) gentoo-dev 2006-08-20 23:57:26 UTC
No, it's not needed. I myself don't have any net.xxx scripts in any runlevel (except for net.lo).

Is sshd in the default runlevel? Does it work if you use wpa_supplicant to manage your wireless interface?
Comment 7 Sebastian Bergmann (RETIRED) gentoo-dev 2006-08-21 00:06:08 UTC
Yes, sshd is in the default runlevel. I don't know about wpa_supplicant as I don't use it.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2006-08-21 00:34:32 UTC
(In reply to comment #7)
> Yes, sshd is in the default runlevel. I don't know about wpa_supplicant as I
> don't use it.

Have you got wireless-tools installed?
Comment 9 Sebastian Bergmann (RETIRED) gentoo-dev 2006-08-21 00:37:57 UTC
Of course.
Comment 10 Roy Marples (RETIRED) gentoo-dev 2006-08-21 02:01:21 UTC
So you're using the ifplugd init script?
Comment 11 Sebastian Bergmann (RETIRED) gentoo-dev 2006-08-21 06:51:03 UTC
Created attachment 94771 [details]
/var/log/boot.msg
Comment 12 Sebastian Bergmann (RETIRED) gentoo-dev 2006-08-21 06:51:25 UTC
No, I am not using the ifplugd init script.
Comment 13 Roy Marples (RETIRED) gentoo-dev 2006-08-21 07:04:26 UTC
net.eth1 is not in any runlevel and is not being picked up by udev/coldplug to add it to the default runlevel.

Solution - add net.eth1 to the default runlevel.
Comment 14 Sebastian Bergmann (RETIRED) gentoo-dev 2006-08-21 23:48:33 UTC
Adding net.eth1 to the default runlevel makes the situation currently worse for me: at the time when net.eth1 is started the ipw3945d has not yet been started (because I currently start it via conf.d/local.start).

Will try again once the ipw3945d issue has been solved.
Comment 15 Roy Marples (RETIRED) gentoo-dev 2006-08-22 02:42:29 UTC
If ipw3945d creates the actual interface then we have a problem.
At present, ipw3945d doesn't even have an init script to my knowledge.

I think the only viable solution is to add net.eth1 to the default runlevel, follow the advice in bug #143887 to get net.eth1 to depend on ipw3945d AND - this is the important part - use wpa_supplicant.

wpa_supplicant is important as it makes net.eth1 re-entrant so it supports the inactive status. This means that during a normal boot services that require net will be scheduled to start once a net device becomes active - you are already seeing this with ifplugd.