Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187361 - Default-runlevel-Handling of "renamed" ethernet devices is broken
Summary: Default-runlevel-Handling of "renamed" ethernet devices is broken
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-01 11:10 UTC by Manuel Schmitt
Modified: 2007-09-02 20:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Schmitt 2007-08-01 11:10:32 UTC
When using interface names like eth0, eth1 and so on, one can use /etc/runlevel/default/net.eth0 to decide whether this network device should be "autostarted" at system startup or not.

This does NOT work with udev-"renamed" interface devices. E.g. when eth0 is renamed (by udev-rule) to "ifint" the interface gets started in default runlevel even if its link is missing.

Reproducible: Always

Steps to Reproduce:
1. Rename eth0 to something like ifint via udev
2. Remove default-runlevel entry (see above)
3. (re)Boot :-)

Actual Results:  
Interface is started even if symlink is missing

Expected Results:  
Interface should not be started
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-08-01 11:45:04 UTC
You neglected to attach `emerge --info` so we have no idea what versions you're running. FWIW, this works fine on my ~ARCH box with baselayout-2.
Comment 2 Manuel Schmitt 2007-08-01 11:47:37 UTC
Portage 2.1.2.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22.1 i68                                                                                                                      6)
=================================================================
System uname: 2.6.22.1 i686 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 27 Jul 2007 07:00:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O8 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O8 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/                                                                                                                      distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress                                                                                                                       --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/di                                                                                                                      stfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv                                                                                                                       ipv6 isdnlog libg++ midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl                                                                                                                       pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts                                                                                                                       unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0                                                                                                                      106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8                                                                                                                      x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_P                                                                                                                      LUGINS="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 sof                                                                                                                      tvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVI                                                                                                                      CES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USER                                                                                                                      LAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i                                                                                                                      810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage sil                                                                                                                      iconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGU                                                                                                                      AS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Matthias Schwarzott gentoo-dev 2007-08-01 11:55:45 UTC
Well, without a symlink in a runlevel for eth0 that also is auto-started.
and it is controlled by some hotplug settings in /etc/conf.d/rc I think.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-08-01 15:43:44 UTC
Something still has to call /etc/init.d/net.eth0 start .... this something is udev in this case. Unless anyone can demonstrate otherwise.

I think that is the error being reported.
Comment 5 Matthias Schwarzott gentoo-dev 2007-09-02 20:14:24 UTC
I still consider this is not a bug:
If you did not modify /etc/conf.d/rc: RC_PLUG_SERVICES, then every existing network device gets up either in the runlevel it got added, or else boot-runlevel.

Please reopen this bug if you still consider the behaviour is buggy.