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

Bug 170808

Summary: /sbin/rc "Device initiated services" turns on eth0 which must be off
Product: Gentoo Linux Reporter: Chris Smith <xsmith>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Smith 2007-03-14 00:25:31 UTC
eth0 on my computer has a hardware problem that resets the machine at random.  I removed net.eth0 using rc-update, to keep eth0 down, which it must be.

However this decision is reversed by /sbin/rc.  I don't really understand the stuff with SOFTLEVEL, BOOTLEVEL, /dev/.rcboot, and so on, and I don't understand what it's doing or why, so I can't suggest a fix.

Here is a small excerpt from rc-update show -v

            net.eth0 |                               
            net.eth1 |      default                  
            net.eth2 |      default                  
              net.lo | boot                          


Reproducible: Always

Steps to Reproduce:
1. remove net.eth0 from all runlevels
2. observe that eth0 is nevertheless started up
3.

Actual Results:  
eth0 up

Expected Results:  
eth0 down
Comment 1 Chris Smith 2007-03-14 00:26:59 UTC
Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.14-gentoo-r7-smp i686)
=================================================================
System uname: 2.6.14-gentoo-r7-smp i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 11 Mar 2007 22:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/X11/xkb /var/bind /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d aac alsa bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cpudetection cracklib crypt cups curl dga doc dri dts dvd dvdr dvdread emacs encode esd fam firefox flac fortran gif glibc-omitfp gstreamer gtk iconv inntaggedhash ipv6 isdnlog java jpeg libg++ live lzo mad maildir midi mmx mmxext mozcalendar mp3 mpeg musepack ncurses nptl nptlonly nsplugin ogg opengl oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline real reflection rtc samba sasl sdl sensord session sox speex spell spl sse sse2 ssl tcl tcltk tcpd tetex theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vorbis win32codecs x86 xanim xml xorg xv xvid xvmc zlib" ALSA_CARDS="usb-audio intel8x0" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 SpanKY gentoo-dev 2007-03-14 02:55:01 UTC
you probably have cold/hot plugging enabled in /etc/conf.d/rc