* /etc/dev.d/net/hotplug.dev
@ 2004-10-28 21:19 Eugenia Loli-Queru
2004-10-28 21:45 ` /etc/dev.d/net/hotplug.dev Kay Sievers
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: Eugenia Loli-Queru @ 2004-10-28 21:19 UTC (permalink / raw)
To: linux-hotplug
Hi,
I am not happy with the way hotplug does the naming of my ethernet cards. It
gives eth0 to my wireless pcmcia card, and eth1 to my normal onboard
ethernet pci card. However, I want them the other way around, eth0 for my
pci card and eth1 for my wifi one, because I don't like all the confusion of
my main card becoming eth0 when my wifi card is not in the pcmcia slot.
So, what I did is this, as supported by latest udev.rules, to try and force
the system:
KERNEL="eth*", SYSFS{address}="00:09:5b:c2:ce:01", NAME="eth1" # wifi
KERNEL="eth*", SYSFS{address}="00:a0:cc:de:27:0c", NAME="eth0" # ethernet
But hotplug and your /etc/dev.d/net/hotplug.dev script completely ignores
this and again names them the other way around... Is there any way around
it?
I am using udev 0.42, latest hotplug, kernel 2.6.8.1 on Arch Linux 0.7+.
thank you,
Eugenia
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
@ 2004-10-28 21:45 ` Kay Sievers
2004-10-28 23:03 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kay Sievers @ 2004-10-28 21:45 UTC (permalink / raw)
To: linux-hotplug
On Thu, Oct 28, 2004 at 02:19:59PM -0700, Eugenia Loli-Queru wrote:
> Hi,
> I am not happy with the way hotplug does the naming of my ethernet cards.
> It gives eth0 to my wireless pcmcia card, and eth1 to my normal onboard
> ethernet pci card. However, I want them the other way around, eth0 for my
> pci card and eth1 for my wifi one, because I don't like all the confusion
> of my main card becoming eth0 when my wifi card is not in the pcmcia slot.
>
> So, what I did is this, as supported by latest udev.rules, to try and force
> the system:
> KERNEL="eth*", SYSFS{address}="00:09:5b:c2:ce:01", NAME="eth1" # wifi
> KERNEL="eth*", SYSFS{address}="00:a0:cc:de:27:0c", NAME="eth0" # ethernet
>
> But hotplug and your /etc/dev.d/net/hotplug.dev script completely ignores
> this and again names them the other way around... Is there any way around
> it?
>
> I am using udev 0.42, latest hotplug, kernel 2.6.8.1 on Arch Linux 0.7+.
Your distributions network scripts may bring the interface up, before udev is
able to rename it?
Kay
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
2004-10-28 21:45 ` /etc/dev.d/net/hotplug.dev Kay Sievers
@ 2004-10-28 23:03 ` Eugenia Loli-Queru
2004-10-28 23:41 ` /etc/dev.d/net/hotplug.dev Kay Sievers
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Eugenia Loli-Queru @ 2004-10-28 23:03 UTC (permalink / raw)
To: linux-hotplug
> Your distributions network scripts may bring the interface up, before udev is
> able to rename it?
I don't think so. Udev is the first thing that runs when the OS gets
into multiuser mode. Then, it's syslog, then hotplug, then pcmcia, then
network & netfs services.
Any other ideas?
thx,
Eugenia
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
2004-10-28 21:45 ` /etc/dev.d/net/hotplug.dev Kay Sievers
2004-10-28 23:03 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
@ 2004-10-28 23:41 ` Kay Sievers
2004-10-29 0:36 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Kay Sievers @ 2004-10-28 23:41 UTC (permalink / raw)
To: linux-hotplug
On Thu, 2004-10-28 at 16:03 -0700, Eugenia Loli-Queru wrote:
> > Your distributions network scripts may bring the interface up, before udev is
> > able to rename it?
>
> I don't think so. Udev is the first thing that runs when the OS gets
> into multiuser mode. Then, it's syslog, then hotplug, then pcmcia, then
> network & netfs services.
>
> Any other ideas?
Yeah, your network scripts may be fired up by hotplug? Please make sure
that this is not the reason.
You may ifdown the interfaces, run /sbin/udevstart and check if the
rename works.
Kay
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (2 preceding siblings ...)
2004-10-28 23:41 ` /etc/dev.d/net/hotplug.dev Kay Sievers
@ 2004-10-29 0:36 ` Eugenia Loli-Queru
2004-10-29 10:58 ` /etc/dev.d/net/hotplug.dev Christian Zoz
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Eugenia Loli-Queru @ 2004-10-29 0:36 UTC (permalink / raw)
To: linux-hotplug
> Yeah, your network scripts may be fired up by hotplug? Please make sure
> that this is not the reason.
> You may ifdown the interfaces, run /sbin/udevstart and check if the
> rename works.
I just did so. Renaming was still not working.
thx,
Eugenia
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (3 preceding siblings ...)
2004-10-29 0:36 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
@ 2004-10-29 10:58 ` Christian Zoz
2004-10-29 18:53 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Christian Zoz @ 2004-10-29 10:58 UTC (permalink / raw)
To: linux-hotplug
On Thu, Oct 28, Eugenia Loli-Queru wrote:
> >Yeah, your network scripts may be fired up by hotplug? Please make sure
> >that this is not the reason.
> >You may ifdown the interfaces, run /sbin/udevstart and check if the
> >rename works.
>
> I just did so. Renaming was still not working.
Of course. How should renaming of eth1 to eth0 work as long as there
is another interface named eth0?
Use other names like net0, net1 or cable, wlan.
--
ciao, christian
睡眠不足はいい仕事の敵だ。
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (4 preceding siblings ...)
2004-10-29 10:58 ` /etc/dev.d/net/hotplug.dev Christian Zoz
@ 2004-10-29 18:53 ` Eugenia Loli-Queru
2004-10-29 21:27 ` /etc/dev.d/net/hotplug.dev Olaf Hering
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Eugenia Loli-Queru @ 2004-10-29 18:53 UTC (permalink / raw)
To: linux-hotplug
>Of course. How should renaming of eth1 to eth0 work as long as there is
>another interface named eth0?
>Use other names like net0, net1 or cable, wlan.
But I don't want other names. I just want my wifi pcmcia removable card to
be eth1 and my onboard card to be eth0. But hotplug and/or udev names them
the other way around, and so when my pcmcia is not in the slot, the ethernet
one becomes eth0, creating some confusion to some apps.
So, how do I exchange their names?
thx,
Eugenia
-------------------------------------------------------
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\x12065&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (5 preceding siblings ...)
2004-10-29 18:53 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
@ 2004-10-29 21:27 ` Olaf Hering
2004-10-29 22:03 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Olaf Hering @ 2004-10-29 21:27 UTC (permalink / raw)
To: linux-hotplug
On Fri, Oct 29, Eugenia Loli-Queru wrote:
> So, how do I exchange their names?
put the drivers in the initrd or enforce module loading order.
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n√úRNBERG
-------------------------------------------------------
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\x12065&opÃk
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (6 preceding siblings ...)
2004-10-29 21:27 ` /etc/dev.d/net/hotplug.dev Olaf Hering
@ 2004-10-29 22:03 ` Eugenia Loli-Queru
2004-10-29 22:05 ` /etc/dev.d/net/hotplug.dev Olaf Hering
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Eugenia Loli-Queru @ 2004-10-29 22:03 UTC (permalink / raw)
To: linux-hotplug
>> So, how do I exchange their names?
>
> put the drivers in the initrd or enforce module loading order.
Easy to say than to do. :)
How do I do the second one? Any links for a tutorial or docs?
thx,
Eugenia
-------------------------------------------------------
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\x12065&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (7 preceding siblings ...)
2004-10-29 22:03 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
@ 2004-10-29 22:05 ` Olaf Hering
2004-10-29 22:14 ` /etc/dev.d/net/hotplug.dev Marco d'Itri
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Olaf Hering @ 2004-10-29 22:05 UTC (permalink / raw)
To: linux-hotplug
On Fri, Oct 29, Eugenia Loli-Queru wrote:
> >>So, how do I exchange their names?
> >
> >put the drivers in the initrd or enforce module loading order.
>
> Easy to say than to do. :)
> How do I do the second one? Any links for a tutorial or docs?
echo 'modprobe -v driver1; modprobe -v driver2' >> /etc/init.d/boot.local
Or read the docu of your distribution.
--
USB is for mice, FireWire is for men!
sUse lINUX ag, n√úRNBERG
-------------------------------------------------------
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\x12065&opÃk
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (8 preceding siblings ...)
2004-10-29 22:05 ` /etc/dev.d/net/hotplug.dev Olaf Hering
@ 2004-10-29 22:14 ` Marco d'Itri
2004-11-01 22:38 ` /etc/dev.d/net/hotplug.dev Greg KH
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Marco d'Itri @ 2004-10-29 22:14 UTC (permalink / raw)
To: linux-hotplug
On Oct 29, Olaf Hering <olh@suse.de> wrote:
> > So, how do I exchange their names?
> put the drivers in the initrd or enforce module loading order.
This is not an useful answer, if user have to manually load drivers then
we may as well forget about autodetection.
--
ciao, |
Marco | [8808 igZvS.a6SOcQU]
-------------------------------------------------------
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\x12065&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (9 preceding siblings ...)
2004-10-29 22:14 ` /etc/dev.d/net/hotplug.dev Marco d'Itri
@ 2004-11-01 22:38 ` Greg KH
2004-11-01 22:43 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Greg KH @ 2004-11-01 22:38 UTC (permalink / raw)
To: linux-hotplug
On Mon, Nov 01, 2004 at 02:34:12PM -0800, Eugenia Loli-Queru wrote:
> >It looks like others have answered your questions sufficiently, and it
> >did not need an answer from me, correct?
>
> Not really. No one was able to give me an aswer for something that works
> the way it is supposed to.
> Udev renames the devices, but hotplug renames them back. That's a bug IMHO,
> at best.
Where did anyone say that hotplug renamed the devices back?
<dragging the topic back to the list...>
greg k-h
-------------------------------------------------------
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\x12065&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (10 preceding siblings ...)
2004-11-01 22:38 ` /etc/dev.d/net/hotplug.dev Greg KH
@ 2004-11-01 22:43 ` Eugenia Loli-Queru
2004-11-01 22:53 ` /etc/dev.d/net/hotplug.dev Greg KH
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Eugenia Loli-Queru @ 2004-11-01 22:43 UTC (permalink / raw)
To: linux-hotplug
> Where did anyone say that hotplug renamed the devices back?
I say it. Do you have another explanation? My udev.rules is correct AFAIK,
but then I end up with the different ethernet names anyway. I have contacted
my distro maker (who actually has the same problem with his Thinkpad), and
he said that it's a hotplug problem. That's why I emailed you guys.
So, as a user, what am I supposed to do? I need an automatic solution for
this, because it's inconvenient to get my onboard card to change names
depending if the pcmcia wifi card is in or not. The removable devices should
be named with higher names, so their naming don't affect the permanent
devices if they are not plugged.
Eugenia
-------------------------------------------------------
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\x12065&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (11 preceding siblings ...)
2004-11-01 22:43 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
@ 2004-11-01 22:53 ` Greg KH
2004-11-02 0:01 ` /etc/dev.d/net/hotplug.dev Mathieu Segaud
2004-11-02 0:09 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
14 siblings, 0 replies; 16+ messages in thread
From: Greg KH @ 2004-11-01 22:53 UTC (permalink / raw)
To: linux-hotplug
On Mon, Nov 01, 2004 at 02:43:56PM -0800, Eugenia Loli-Queru wrote:
> >Where did anyone say that hotplug renamed the devices back?
>
> I say it. Do you have another explanation? My udev.rules is correct AFAIK,
> but then I end up with the different ethernet names anyway. I have
> contacted my distro maker (who actually has the same problem with his
> Thinkpad), and he said that it's a hotplug problem. That's why I emailed
> you guys.
What distro are you using?
> So, as a user, what am I supposed to do?
Blame your distro :)
Good luck,
greg k-h
/me hopes you aren't using gentoo...
-------------------------------------------------------
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\x12065&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (12 preceding siblings ...)
2004-11-01 22:53 ` /etc/dev.d/net/hotplug.dev Greg KH
@ 2004-11-02 0:01 ` Mathieu Segaud
2004-11-02 0:09 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
14 siblings, 0 replies; 16+ messages in thread
From: Mathieu Segaud @ 2004-11-02 0:01 UTC (permalink / raw)
To: linux-hotplug
"Eugenia Loli-Queru" <eloli@eugenia.co.uk> disait dernièrement 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,
> but then I end up with the different ethernet names anyway. I have contacted
> my distro maker (who actually has the same problem with his Thinkpad), and
> 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 verifying
that /proc/sys/kernel/hotplug is executable and then if /sbin/hotplug exists ?
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,
--
"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\x12065&opÌk
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: /etc/dev.d/net/hotplug.dev
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
` (13 preceding siblings ...)
2004-11-02 0:01 ` /etc/dev.d/net/hotplug.dev Mathieu Segaud
@ 2004-11-02 0:09 ` Eugenia Loli-Queru
14 siblings, 0 replies; 16+ messages in thread
From: Eugenia Loli-Queru @ 2004-11-02 0:09 UTC (permalink / raw)
To: linux-hotplug
>What distro are you using?
I am using Arch Linux btw.
Rgds,
Eugenia
----- Original Message -----
From: "Mathieu Segaud" <>
To: "Eugenia Loli-Queru" <>
Cc: "Greg KH" < "Hotplug Devel" <linux-hotplug-devel@lists.sourceforge.net>
Sent: Monday, November 01, 2004 4:01 PM
Subject: Re: /etc/dev.d/net/hotplug.dev
"Eugenia Loli-Queru" <> disait dernièrement 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,
> but then I end up with the different ethernet names anyway. I have
> contacted
> my distro maker (who actually has the same problem with his Thinkpad), and
> 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
verifying
that /proc/sys/kernel/hotplug is executable and then if /sbin/hotplug exists
?
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 :)
-------------------------------------------------------
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\x12065&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2004-11-02 0:09 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-28 21:19 /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
2004-10-28 21:45 ` /etc/dev.d/net/hotplug.dev Kay Sievers
2004-10-28 23:03 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
2004-10-28 23:41 ` /etc/dev.d/net/hotplug.dev Kay Sievers
2004-10-29 0:36 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
2004-10-29 10:58 ` /etc/dev.d/net/hotplug.dev Christian Zoz
2004-10-29 18:53 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
2004-10-29 21:27 ` /etc/dev.d/net/hotplug.dev Olaf Hering
2004-10-29 22:03 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
2004-10-29 22:05 ` /etc/dev.d/net/hotplug.dev Olaf Hering
2004-10-29 22:14 ` /etc/dev.d/net/hotplug.dev Marco d'Itri
2004-11-01 22:38 ` /etc/dev.d/net/hotplug.dev Greg KH
2004-11-01 22:43 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
2004-11-01 22:53 ` /etc/dev.d/net/hotplug.dev Greg KH
2004-11-02 0:01 ` /etc/dev.d/net/hotplug.dev Mathieu Segaud
2004-11-02 0:09 ` /etc/dev.d/net/hotplug.dev Eugenia Loli-Queru
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).