From: "Karl O. Pinc" <kop@meme.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: generation of persistent network devices rules at install time
Date: Tue, 29 Jul 2008 04:32:08 +0000 [thread overview]
Message-ID: <1217305928l.476l.0l@mofo> (raw)
In-Reply-To: <20080729023459.GA5224@bongo.bofh.it>
On 07/28/2008 09:34:59 PM, Marco d'Itri wrote:
> I have still not found a good solution to this problem, and it's not
> practical anymore to emulate the 75-persistent-net-generator.rules
> logic
> in a shell script.
I'm not sure I'm on-topic here, or whether this has been
discussed before, or whether my sleep deprived brain
is entirely missing the point, but...
I've looked at the persistent-net-generator rules/scripts
(et-al) and find them a kludge. This is not (necessarily)
because they write rules, but because they attempt
to interpret the udev rule language in order to figure out
what to do. (Reading and interpreting the udev rules
they generated to do things like figure out the
next device name in the ethN sequence to choose, etc.)
It seems to me that a more robust approach would be
to instead generate a (flat file, text based) database
and have a udev rule/shell script generate the necessary
rules and then execute them every time -- with perhaps
a bit of caching thrown in somehow so that the rules
are not really re-generated every time.
The user/admin would then muck with the text file,
aka database, aka configuration file, when desiring
a change in the the persistent device mapping.
By storing state explicitly in a "database" rather
than in udev rules you open up the possibility of
additional semantics not present in the udev rules.
Maybe the introduction of new semantics (lordy!,
more complication) tailored to the problems of
persistent devices could address the issues raised?
Karl <kop@meme.com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
next prev parent reply other threads:[~2008-07-29 4:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-29 2:34 generation of persistent network devices rules at install time Marco d'Itri
2008-07-29 3:18 ` Bryan Kadzban
2008-07-29 4:32 ` Karl O. Pinc [this message]
2008-07-29 9:44 ` Marco d'Itri
2008-07-29 10:23 ` Marco d'Itri
2008-07-29 10:34 ` Kay Sievers
2008-07-29 11:13 ` Bryan Kadzban
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=1217305928l.476l.0l@mofo \
--to=kop@meme.com \
--cc=linux-hotplug@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).