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

Bug 206518

Summary: udev does not respect for networking RC_COLDPLUG=no
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: [OLD] Core systemAssignee: udev maintainers <udev-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alexxy, base-system, roy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 191466    
Bug Blocks:    

Description SpanKY gentoo-dev 2008-01-18 11:51:15 UTC
i dont know what the middle ground is here, but when i set RC_COLDPLUG=no, i fully expect udev to not do a single thing wrt starting services.  i have net.eth0 (which is physically damaged) get coldplugged on me and causes networking problems until i login locally and stop the init.d script.  net.eth6, unlike net.eth0, is added to my default runlevel and has the network settings i actually need.


root@vapier 0:0 ~ # qlist -I -v baselayout udev
sys-apps/baselayout-2.0.0_rc6-r1
sys-fs/udev-118


root@vapier 0:0 ~ # sed -n '/^[^#]/p' /etc/conf.d/rc
RC_PARALLEL="no"
RC_INTERACTIVE="no"
RC_VERBOSE="no"
RC_QUIET="no"
RC_DEPEND_STRICT="yes"
RC_HOTPLUG="no"
RC_COLDPLUG="no"
RC_PLUG_SERVICES=""
RC_FORCE_AUTO="no"
RC_LOGGER="yes"
RC_TTY_NUMBER=9
RC_DOWN_INTERFACE="yes"
RC_DOWN_HARDDISK="yes"
RC_DEVICES="auto"
RC_DEVICE_TARBALL="no"
RC_DMESG_LEVEL="1"


Portage 2.1.4 (default-linux/amd64/2006.1/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.23.14 x86_64)
=================================================================
System uname: 2.6.23.14 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Sat, 12 Jan 2008 23:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r8, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.15.92.0.2-r10, 2.16-r1, 2.16.1, 2.16.1-r3, 2.16.90.0.3, 2.16.91.0.1, 2.16.91.0.2, 2.16.91.0.3, 2.16.91.0.4, 2.16.91.0.5, 2.16.91.0.6, 2.16.91.0.7, 2.16.92, 2.16.93, 2.16.94, 2.17-r1, 2.17.50.0.2, 2.17.50.0.3, 2.17.50.0.4, 2.17.50.0.5, 2.17.50.0.6, 2.17.50.0.7, 2.17.50.0.8, 2.17.50.0.9, 2.17.50.0.10, 2.17.50.0.11, 2.17.50.0.12, 2.17.50.0.13, 2.17.50.0.14, 2.17.50.0.15, 2.17.50.0.16, 2.17.50.0.17, 2.17.50.0.18, 2.18-r1, 2.18.50.0.1, 2.18.50.0.2, 2.18.50.0.3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -g -Wimplicit-function-declaration"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /var/lib/rpm"
CXXFLAGS="-O2 -march=k8 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildsyspkg ccache cvs distlocks metadata-transfer noinfo parallel-fetch sandbox sfperms sign splitdebug unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
INSTALL_MASK="/usr/share/applications /usr/kde/*/share/applications"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,-z,relro"
LINGUAS="en en_GB de es cs"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/src/gentoo/overlays/vapier/enlightenment"
SYNC="rsync://gentoo/gentoo-portage"
USE="X a52 aac aalib accessibility acl adns agg aio alsa amd64 apache2 asf audiofile berkdb bitmap-fonts bzip2 cairo cddb cdparanoia cdr cli console cracklib crypt cups curl dba directfb divx4linux dri dts dvb dvd dvdr dvdread emboss encode exif fbcon ffmpeg firefox flac flash fortran ftp gcj gd gif glitz glut gmp gphoto2 gpm gtk gtk2 iconv imap imlib ipv6 isdnlog jbig joystick jpeg jpeg2k libcaca libedit lzo lzw mad maildir matroska midi mikmod mime mjpeg mng modplug mp3 mpeg mplayer mudflap multislot musepack mysql ncurses nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis openal opengl openmp pcre pdf perl pic png ppds pppd pulseaudio python qt3 qt4 quicktime readline reflection samba sdl session sndfile snmp spell spl sqlite ssl subtitles svg syslog tcl tcltk tcpd tga theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb vcd vorbis wma wmf xanim xattr xcomposite xine xinerama xml xml2 xorg xpm xrandr xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystick void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB de es cs" USERLAND="GNU" VIDEO_CARDS="nvidia nv ati r128 radeon vga sisusb"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthias Schwarzott gentoo-dev 2008-01-31 13:06:13 UTC
This could be a solution:

In udev-start:

touch /dev/.udev_no_rc_call
... usual udevtrigger ...
udevsettle
rm /dev/.udev_no_rc_call

And in net.sh (that runs the services) do:
if [ -e /dev/.udev_no_rc_call ]; then
  exit 0
fi

Comment 2 Matthias Schwarzott gentoo-dev 2008-01-31 13:16:10 UTC
Second possibility (same effect just using nicer interface):

Inject a variable into the udev-events:
udevadm control --env do_not_run_rc=1
udevtrigger
udevsettle
udevadm control --env do_not_run_rc=

Comment 3 Roy Marples 2008-01-31 23:38:36 UTC
OpenRC now says if rc_coldplug=no, ignore udev coldplug requests. This has a knock on effect of the udev-postmount script not running. I don't know how important that is to udev with regard to this.
Comment 4 Matthias Schwarzott gentoo-dev 2008-02-01 14:53:09 UTC
(In reply to comment #2)
> Second possibility (same effect just using nicer interface):
> 
> Inject a variable into the udev-events:
> udevadm control --env do_not_run_rc=1
> udevtrigger
> udevsettle
> udevadm control --env do_not_run_rc=
> 

This has been implemented in udev-118-r1.
Comment 5 Alexey Shvetsov archtester gentoo-dev 2008-02-01 21:38:29 UTC
Hmm...
I have latest versions of openrc and udev-118-r1
in rc.conf rc_coldplug=yes but no interfaces starts automaticaly at boot
Comment 6 Matthias Schwarzott gentoo-dev 2008-02-01 21:43:40 UTC
(In reply to comment #5)
> Hmm...
> I have latest versions of openrc and udev-118-r1
> in rc.conf rc_coldplug=yes but no interfaces starts automaticaly at boot
> 
Is this more than slightly related to the content of this bug?
I guess this belongs to bug 208245.