On 9/8/06, Alexander E. Patrakov <[EMAIL PROTECTED]> wrote:
Matthew Burgess wrote:
>
> Can we not have our cake and eat it too? By which I mean, can we not
> use the stock generators explaining which of the styles of the
> persistent rules it uses and also showing an example of the other style?
Let's see if I understand you correctly.
1) Explain that "location persistence" and "identity persistence" are
possible
2) Show both examples for both CD-ROM and network (i.e., 4 examples
total, as in the current book)
3) Explain that it is possible to set up scripts that automatically
write persistent rules for a device upon its first discovery, explain
why retrying failed uevents is important for the scripts to work.
4) Optionally install pre-written scripts that achieve location
persistence for CD-ROMs and identity persistence for network interfaces.
I'm coming in late here, but I think I agree with Matthew that both
should be possible. I'm probably saying the same thing as Matthew,
but...
In udev-100, `make install' in extras/rule_generator will install the
scripts and functions and the the two udev rules files,
75-cd-aliases-generator.rules and 75-persistent-net-generator.rules.
Seems to me that we can put this in the stock udev install. Then in
the later sections explaining persistence, these rules files can be
moved/commented/overwritten if someone prefers to write their own
rules with the explanations in the book.
I'm still not up to speed on the rest of the discussion, but I think
the user should have the option of using the distributed scripts or to
create their own persistence rules. It doesn't look like it will be
too difficult to provide this. (I'm ignoring the problem you've
described with the ethX interfaces right now as I'm not exactly
following it.)
And I think what Peter is saying about beginning and ending hand
generated rules files with the "# Begin..." and "# End..." comments is
correct. Not for appending to pre-existing rules, though (I don't
think we do that right now anyway).
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page