From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Segaud Date: Tue, 02 Nov 2004 00:01:10 +0000 Subject: Re: /etc/dev.d/net/hotplug.dev Message-Id: <873bzt15mh.fsf@barad-dur.crans.org> List-Id: References: <048e01c4bd33$e2657c20$0a00000a@eugenia> In-Reply-To: <048e01c4bd33$e2657c20$0a00000a@eugenia> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org "Eugenia Loli-Queru" disait derni=E8rement que : >> Where did anyone say that hotplug renamed the devices back? > > I say it. Do you have another explanation? My udev.rules is correct AFAIK= ,=20 > but then I end up with the different ethernet names anyway. I have contac= ted=20 > my distro maker (who actually has the same problem with his Thinkpad), an= d=20 > he said that it's a hotplug problem. That's why I emailed you guys. I am using Gentoo Linux, and initramfs to boot my dm-crypt'd /. To prevent some bad interaction between hotplug and initramfs stuff (oopsen when call_usermodhelper is issued), I explicitly disables hotplug during initramfs phase with "echo > /proc/sys/kernel/hotplug" But /sbin/rc (Gentoo main initscript) does not set it back to /sbin/hotplug (and I forgot to do so in my initramfs_data.cpio.gz :)), and sets it to /sbin/udev (normal behaviour). With this setup, ethernet cards are not named as stated in udev.rules. The workaround for me is to add an "echo /sbin/hotplug > /proc/sys/kernel/hotplug" before udev/hotplug configuration. So my suggestion is: verify that /proc/sys/kernel/hotplug is set to hotplug and not udev binary, by your distro initscripts. By the way, Greg, shouldn't /sbin/rc in Gentoo test if /sbin/hotplug exists and set /proc/sys/kernel/hotplug to /sbin/hotplug if so, instead of verifyi= ng that /proc/sys/kernel/hotplug is executable and then if /sbin/hotplug exist= s ? I thought about filing a bug at bugs.gentoo.org, but this looks to me asif = it were a chicken/egg problem, and you know more about hotplug and udev interaction than me :) Best regards, --=20 "Oh, well. Not everybody can be as goodlooking as me. It's a curse." - Linus Torvalds ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id=12065&op=CCk _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel