Bug#544280: udev raises interfaces not listed in /etc/network/interfaces
Package: udev Version: 0.141-2 Severity: normal Hi, I can't understand why udev (through /lib/udev/net.agent) would raise interfaces not listed in /etc/network/interfaces. It is slowing down unnecessarily the boot process. I am not aware of all the subtelty of udev, so maybe I am mistaken. If so could you explain me why this is done this way ? Regards, Bertrand PS Here is the very small patch I use on my system wich doesn't seem to affect my networking and speed up my boot process of 2 seconds: --- /lib/udev/net.agent.old 2009-08-16 20:49:45.0 +0200 +++ /lib/udev/net.agent 2009-08-30 11:26:52.0 +0200 @@ -39,7 +39,8 @@ # this $INTERFACE is marked as auto IFUPARG='\('$INTERFACE'\|-a\|--all\)' else - IFUPARG=$INTERFACE + #IFUPARG=$INTERFACE + exit 0 fi if ps -C ifup ho args | grep -q $IFUPARG; then -- Package-specific info: -- /etc/udev/rules.d/: /etc/udev/rules.d/: total 72 lrwxrwxrwx 1 root root19 avr 23 23:41 025_libgphoto2.rules - ../libgphoto2.rules -rw-r--r-- 1 root root 595 nov 16 2008 70-persistent-cd.rules -rw-r--r-- 1 root root 538 aoû 29 00:28 70-persistent-net.rules lrwxrwxrwx 1 root root15 jan 20 2009 z60_hdparm.rules - ../hdparm.rules -rw-r--r-- 1 root root 1152 mai 6 14:36 z60_libsane-extras.rules -rw-r--r-- 1 root root 55330 jun 26 17:48 z60_libsane.rules -- /sys/: /sys/dev /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:28/input/input1/event1/dev /sys/devices/LNXSYSTM:00/device:00/PNP0A03:00/device:2d/input/input2/event2/dev /sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input4/event4/dev /sys/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input3/event3/dev /sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input5/event5/dev /sys/devices/pci:00/:00:02.0/drm/card0/dev /sys/devices/pci:00/:00:1d.0/usb2/2-0:1.0/usb_endpoint/usbdev2.1_ep81/dev /sys/devices/pci:00/:00:1d.0/usb2/dev /sys/devices/pci:00/:00:1d.0/usb2/usb_device/usbdev2.1/dev /sys/devices/pci:00/:00:1d.0/usb2/usb_endpoint/usbdev2.1_ep00/dev /sys/devices/pci:00/:00:1d.1/usb3/3-0:1.0/usb_endpoint/usbdev3.1_ep81/dev /sys/devices/pci:00/:00:1d.1/usb3/dev /sys/devices/pci:00/:00:1d.1/usb3/usb_device/usbdev3.1/dev /sys/devices/pci:00/:00:1d.1/usb3/usb_endpoint/usbdev3.1_ep00/dev /sys/devices/pci:00/:00:1d.2/usb4/4-0:1.0/usb_endpoint/usbdev4.1_ep81/dev /sys/devices/pci:00/:00:1d.2/usb4/dev /sys/devices/pci:00/:00:1d.2/usb4/usb_device/usbdev4.1/dev /sys/devices/pci:00/:00:1d.2/usb4/usb_endpoint/usbdev4.1_ep00/dev /sys/devices/pci:00/:00:1d.3/usb5/5-0:1.0/usb_endpoint/usbdev5.1_ep81/dev /sys/devices/pci:00/:00:1d.3/usb5/dev /sys/devices/pci:00/:00:1d.3/usb5/usb_device/usbdev5.1/dev /sys/devices/pci:00/:00:1d.3/usb5/usb_endpoint/usbdev5.1_ep00/dev /sys/devices/pci:00/:00:1d.7/usb1/1-0:1.0/usb_endpoint/usbdev1.1_ep81/dev /sys/devices/pci:00/:00:1d.7/usb1/dev /sys/devices/pci:00/:00:1d.7/usb1/usb_device/usbdev1.1/dev /sys/devices/pci:00/:00:1d.7/usb1/usb_endpoint/usbdev1.1_ep00/dev /sys/devices/pci:00/:00:1e.2/sound/card0/adsp/dev /sys/devices/pci:00/:00:1e.2/sound/card0/audio/dev /sys/devices/pci:00/:00:1e.2/sound/card0/controlC0/dev /sys/devices/pci:00/:00:1e.2/sound/card0/dsp/dev /sys/devices/pci:00/:00:1e.2/sound/card0/mixer/dev /sys/devices/pci:00/:00:1e.2/sound/card0/pcmC0D0c/dev /sys/devices/pci:00/:00:1e.2/sound/card0/pcmC0D0p/dev /sys/devices/pci:00/:00:1e.2/sound/card0/pcmC0D1c/dev /sys/devices/pci:00/:00:1e.2/sound/card0/pcmC0D2c/dev /sys/devices/pci:00/:00:1e.2/sound/card0/pcmC0D3c/dev /sys/devices/pci:00/:00:1e.2/sound/card0/pcmC0D4p/dev /sys/devices/pci:00/:00:1e.3/sound/card1/audio1/dev /sys/devices/pci:00/:00:1e.3/sound/card1/controlC1/dev /sys/devices/pci:00/:00:1e.3/sound/card1/dsp1/dev /sys/devices/pci:00/:00:1e.3/sound/card1/mixer1/dev /sys/devices/pci:00/:00:1e.3/sound/card1/pcmC1D0c/dev /sys/devices/pci:00/:00:1e.3/sound/card1/pcmC1D0p/dev /sys/devices/pci:00/:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/dev /sys/devices/pci:00/:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1/dev /sys/devices/pci:00/:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda2/dev /sys/devices/pci:00/:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda3/dev /sys/devices/pci:00/:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5/dev /sys/devices/pci:00/:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda6/dev /sys/devices/pci:00/:00:1f.2/host0/target0:0:0/0:0:0:0/bsg/0:0:0:0/dev /sys/devices/pci:00/:00:1f.2/host0/target0:0:0/0:0:0:0/scsi_generic/sg0/dev /sys/devices/pci:00/:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0/dev
Bug#544280: udev raises interfaces not listed in /etc/network/interfaces
Marco d'Itri a écrit : Me neither. What are you talking about? Here is my /etc/interfaces : # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback It is quite empty, and I don't expect udev to ifup (that's what I meant with raise) my other real interfaces. I do that later when I need the interface (or Network-manager does it if I let it). And it seems to me (and to bootchart) that /lib/udev/net.agent is trying to ifup all my interfaces without my horribly wrong patch. With the original net.agent, bootchart reports a 4-5 sec execution of net.agent during boot. With my patch bootcharts reports a normal process (less than a sec). Again I know little about udev, I am mostly looking for explainations. It's very small but also totally wrong, so it's not very useful. It is horribly wrong indeed, I just gave it to explain what I was talking about (note that I didn't tagged the bug as patched). Googling about net.agent, you'll even find poeple not happy with it just placing at the beginning of the file a exit 0. Regards, Bertrand -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#544280: udev raises interfaces not listed in /etc/network/interfaces
On Aug 30, Bertrand Marc beberk...@gmail.com wrote: I can't understand why udev (through /lib/udev/net.agent) would raise interfaces not listed in /etc/network/interfaces. It is slowing down Me neither. What are you talking about? PS Here is the very small patch I use on my system wich doesn't seem to affect my networking and speed up my boot process of 2 seconds: It's very small but also totally wrong, so it's not very useful. -- ciao, Marco signature.asc Description: Digital signature