1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-11-01 09:21:11 +03:00
Commit Graph

23 Commits

Author SHA1 Message Date
Marco d'Itri
03effd3bc9 rules_generator: net rules - do not print error if file is missing and ignore commented rules
Fix an error message displayed by write_net_rules when the rules file
does not exist yet. (See Debian bugs #442796 and #475699.)

Ignore commented rules, at least for the easy case.
For clarity, use extended instead of standard regular expressions.
2008-07-07 14:32:33 +02:00
Kay Sievers
941d40a074 rules: persistent net - handle "locally administered" ibmveth MAC addresses 2008-05-26 17:11:13 +02:00
David Woodhouse
8b6e9f287d rules_generator: net rules - add "dev_id" value to generated rules 2008-04-27 20:19:44 +02:00
Kay Sievers
e6d70ed63a rules_generator: net rules - always add KERNEL== match to generated rules 2008-04-15 00:21:51 +02:00
Roy Marples
064360cde8 Makefile: do not require GNU install 2008-03-15 00:02:39 +01:00
Kay Sievers
9138bcba99 rules_generator: add KERNEL=="<netifname>*" to generated rules
Some boxes, like the PS3, have multiple independent hardware
interfaces, all sharing the same MAC address. If they have
different interface names base names, we can distinguish them
that way.
2008-03-13 16:31:14 +01:00
Jiri Slaby
6e509e539b rules_generator: add missing write_net_rules unlock 2007-12-31 14:24:55 +01:00
Kay Sievers
c8ee8f983f rules_generator: do not create rules with insufficient matches
Thanks to Alexander E. Patrakov for pointing out that we create
invalid rules.

We still need a proper fix for devices we skip creating rules
(locally administered MAC), but want to swap names with interface
names we created rules for.
2007-11-20 18:18:03 +01:00
Kay Sievers
8fe5f78b7e rule_generator: always match netif type in generated rule 2007-09-25 17:18:49 +02:00
Kay Sievers
c746922ca2 rule_generator: move all policy from write_net_rules to the rules file 2007-09-21 17:42:46 +02:00
Kay Sievers
7d6ffc7216 rule_generator: fix wrong DRIVERS!= logic
Thanks to Matthias for identifying that.
2007-08-21 23:05:47 +02:00
Marco d'Itri
0837c28e9b rules_generator: fix write_cd_rules when similar names exist in the root directory
The argument to find_all_rules must be quoted or it will be subject to
shell expansion, which will happen if in the root directory there are
mount points with the same base name.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407738 for details.
2007-08-07 10:39:07 +02:00
Marco d'Itri
14e1e49484 rules_generator: remove policy from write_cd_rules
The decision about when to create by-id or by-path persistent rules should
be made in the generator rules file where it's obvious and easy to modify
locally, not in the script.
2007-08-07 10:37:58 +02:00
Kay Sievers
dcfa2acce3 rules_generator: skip random MAC addresses 2007-08-02 21:19:41 +02:00
Kay Sievers
9b23e594bf rules_generator: remove "installation" function
This should be called by triggering events not by looping with
the script itself. It also keeps a second blacklist outside of
the rules which we do not want to maintain.
2007-07-25 18:16:11 +02:00
Hannes Reinecke
49369cafe4 rules_generator: add S/390 persistent network support 2007-07-25 15:42:39 +02:00
Kay Sievers
c51d06d3b7 rules_generator: remove executable flag from include file 2007-06-25 16:02:38 +02:00
Matthias Schwarzott
491a6a71ff write_cd_rules: set default link type to "by-id" for usb and ieee1394 devices 2007-03-22 21:05:56 +01:00
Matthias Schwarzott
1f889fb84f rule_generator: fix for creating rules on read-only filesystem 2007-02-26 15:07:42 +01:00
Peter Breitenlohner
86f4ea067e fix INSTALL_PROGRAM vs. INSTALL_SCRIPT 2007-01-21 15:48:58 +01:00
Marco d'Itri
64e6d9dd70 write_cd_rules: identity-based persistence
Bryan Kadzban wrote:
> Marco d'Itri wrote:
> > Bryan Kadzban wrote:
> >
> > > This is a sort of follow-up of my path-based persistence patch for
> > > net devices; it's the opposite type of addition for CD symlinks.
> >
> > Looks good. I am attaching a slightly reformatted version, I think it
> > should be applied.
>
> That's probably a lot more clear than my version anyway: what you posted
> looks like it does basically the same thing, just with some changes in
> the order and sense of checks.
2006-11-27 10:34:43 +01:00
Kay Sievers
8091f6a90c rule_generator: improve net rule comment generation 2006-09-09 14:45:45 +02:00
Marco d'Itri
fbcbf70bb2 add persistent rules generator for net devices and optical drives 2006-09-05 15:20:28 +02:00