public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: udev upgrade and non-working eth0
Date: Wed, 29 Nov 2006 10:33:27 -0700	[thread overview]
Message-ID: <7573e9640611290933o16ea01e8sd7b53db30e14d7b6@mail.gmail.com> (raw)
In-Reply-To: <200611280749.49142.mrugeshkarnik@gmail.com>

On 11/27/06, Mrugesh Karnik <mrugeshkarnik@gmail.com> wrote:
> On Tuesday 28 November 2006 07:31, Richard Fish wrote:
> > > can see a 75-persistent-net-generator.rules file in there..
> >
> > Hmm, not sure how I got a 70-persistent-net.rules.  There is some
> > interaction between that and 75-persistent-net-generator.rules (and
> > the /lib/udev/write_net_rules script), but I'm a bit too tired to
> > figure it out ATM.  It looks like 70-... should be created by the
> > write_net_rules script...
>
>
> RULES_FILE='/etc/udev/rules.d/70-persistent-net.rules'
>
> That's the first line of write_net_rules.

Right.  I just wasn't able to figure out why you didn't already have
this file created, nor why my laptop had it but not my desktop.

So the story is that 75-persistent-net-generator.rules will call the
script when ethernet devices are added, and it is up to the
write_net_rules script to generate 70-persistent-net.rules.  The
problem is that when udev starts very early in the boot process, your
root filesystem may still be mounted read-only, preventing this file
from being created.

This worked on my laptop, because I added module aliases to prevent
udev from coldplugging the ipw3945 driver, since it requires a daemon
to be running in order to work and that required /var to be mounted.
The module is loaded later in the boot process, after all of the
filesystems are mounted read-write, and that allowed udev to create
the rules file for me, but only for that adapter.

The upshot of this is this: by far the easiest way to solve the
net-naming problem is to run

/lib/udev/write_net_rules all_interfaces

This will generate the rules for all interfaces, and then you can just
edit the file to change the names as you like.  So I guess I'll know
that for the next person that asks. :-P

-Richard
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-11-29 17:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-27 13:58 [gentoo-user] udev upgrade and non-working eth0 Mrugesh Karnik
2006-11-27 14:10 ` Uwe Thiem
2006-11-27 14:15 ` blackhawk
2006-11-27 14:36 ` [gentoo-user] " 7v5w7go9ub0o
2006-11-27 15:26   ` Neil Bothwick
2006-11-27 16:59   ` Mrugesh Karnik
2006-11-27 17:12     ` Richard Fish
2006-11-27 20:57       ` Mrugesh Karnik
2006-11-27 22:46         ` Richard Fish
2006-11-28  0:50           ` Mrugesh Karnik
2006-11-28  1:08             ` Richard Fish
2006-11-28  1:41               ` Mrugesh Karnik
2006-11-28  2:01                 ` Richard Fish
2006-11-28  2:19                   ` Mrugesh Karnik
2006-11-29 17:33                     ` Richard Fish [this message]
2006-11-29 18:45                       ` Mick
2006-11-30  0:56                       ` Mrugesh Karnik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7573e9640611290933o16ea01e8sd7b53db30e14d7b6@mail.gmail.com \
    --to=bigfish@asmallpond.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox