2007/11/17, Bryan Kadzban <[EMAIL PROTECTED]>:
> A) We need to generate the rules, obviously. We don't want the user to
> boot their LFS system for the first time without any rules in existence,
> because they've already configured their NICs in chapter 7.
I disagree. We need to create, not necessarily generate, rules. I
mean, we can provide some examples so that the reader becomes able to
create rules manually, using a text editor. The only cases one needs
to consider are:
1) a wireless device that creates two interfaces (ath* and wlan* only)
- instruct the reader to write a rule with ATTR{type}=="1"
2) every other device that needs persistent rules (eth*, ra* and sta*
only) - instruct the reader to write a rule without ATTR{type}
3) everything else - no rules needed.
> 2) We could fire up a copy of udevd inside chroot, and trigger all the
> network-subsystem devices' uevents. We'd have to make sure the new
> names don't actually get applied, otherwise we screw up the host. There
> are also a few sockets (well, at least one) that udev listens on that
> are exclusive: if a version of udevd is already running on the host,
> we'd either have to kill it (leaving chroot to do so) and restart it
> afterward (again leaving chroot), or make the udevd-in-chroot not
> require that socket.
I'd rather not do it, since this requires another "if" on the version
of udev on the host (a bad thing for jhalfs), and running udevd inside
the chroot increases our host kernel requirements.
> 3) Wait to see what Debian does with debootstrap (since I can't find
> anything regarding udev at the moment) and copy it, if it'll work for
> us.
debootstrap doesn't do this (it doesn't even install udev by default),
you want to look at debian-installer. As far as I can see, udev in the
debian installer creates persistent rules, so it would be
straightforward to just copy them into the chroot, but I can't
currently say whether this is what the installer actually does.
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page