In Fedora 15, I could disable the persistent-net-generator rules with "chkconfig udev-post off". However, in Fedora 16, no such service is available, and I can't find any way to permanently disable renaming of ethernet devices. Due to an unfortunate interaction, this means that the "biosdevname=0" option is not always honored.
"chkconfig udev-post off" only works if you are lucky, and only for devices which are all available during bootup already. You can 'mask' the rules file in /lib with an empty file in /etc, so the generator rules will never be read: ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules Biosdevname you can just "rpm -e".
(In reply to comment #1) > You can 'mask' the rules file in /lib with an empty file in /etc, so the > generator rules will never be read: > ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules I didn't realize that the rules files could be shadowed like that. This is way better than disabling udev-post, and it seems a lot more future-proof, too. I wonder where this could be documented (a lot of people on forums and mailing lists seem very confused).
It's in the udev man page: "However, files in /etc/udev/rules.d/ take precedence over files with the same name in /lib/udev/rules.d/; this can be used to ignore a default rules file if needed." I might just add an additional sentence ...
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=1021e6dfcc339728d83bfa5a3e8cd73bb37dbcef Thanks!
I just realized that my sentence was ambiguous. I wasn't trying to say that the udev documentation about masking was missing (that was just me not having spent enough time in the udev docs). Rather, on a high level, it would be nice to document to Fedora users that "rm /etc/udev/rules.d/70-persistent-net.rules; ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules" disables device renaming. There seem to be a lot of users in mailing lists and forums who are confused about how to control the magical process of device renaming.
Yeah, true. In Fedora 17 the automagic renaming that writes out rules files is gone anyway. We rely on biosdevname or static configuration created by the admin or admin tools. There will be no rules created on-the-fly.
(In reply to comment #6) > Yeah, true. In Fedora 17 the automagic renaming that writes out rules files is > gone anyway. We rely on biosdevname or static configuration created by the > admin or admin tools. There will be no rules created on-the-fly. That will be a very welcome simplification. Thank you for your work on this and for answering my questions so helpfully.