Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 224801 Details for
Bug 264901
oops, we have multiple sources of persistent network names active at the same time
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
anaconda patch to write persistent net rules
net.diff (text/plain), 2.11 KB, created by
Bill Nottingham
on 2007-10-11 21:14:19 UTC
(
hide
)
Description:
anaconda patch to write persistent net rules
Filename:
MIME Type:
Creator:
Bill Nottingham
Created:
2007-10-11 21:14:19 UTC
Size:
2.11 KB
patch
obsolete
>Index: network.py >=================================================================== >RCS file: /usr/local/CVS/anaconda/network.py,v >retrieving revision 1.105 >diff -u -r1.105 network.py >--- network.py 4 Sep 2007 21:36:40 -0000 1.105 >+++ network.py 11 Oct 2007 20:49:59 -0000 >@@ -529,5 +529,30 @@ > for ns in self.nameservers(): > if ns: > f.write("nameserver %s\n" % (ns,)) >+ f.close() >+ >+ # /etc/udev/rules.d/70-persistent-net.rules >+ if not os.path.isdir("%s/etc/udev/rules.d" %(instPath,)): >+ iutil.mkdirChain("%s/etc/udev/rules.d" %(instPath,)) >+ >+ f = open(instPath + "/etc/udev/rules.d/70-persistent-net.rules", "w") >+ f.write(""" >+# This file was automatically generated by the /lib/udev/write_net_rules >+# program run by the persistent-net-generator.rules rules file. >+# >+# You can modify it, as long as you keep each rule on a single line. > >+""") >+ for dev in self.netdevices.values(): >+ addr = dev.get("hwaddr") >+ if not addr: >+ continue >+ # rules are case senstive for address. Lame. >+ addr = addr.lower() >+ s = "" >+ if len(dev.get("DESC")) > 0: >+ s = "# %s\n" % (dev.get("DESC"),) >+ s = s + 'SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS=="?*", ATTR{address}=="%s", NAME="%s"\n' % (addr, dev.get("device")) >+ f.write(s) >+ > f.close() >Index: packages.py >=================================================================== >RCS file: /usr/local/CVS/anaconda/packages.py,v >retrieving revision 1.348 >diff -u -r1.348 packages.py >--- packages.py 19 Sep 2007 18:02:10 -0000 1.348 >+++ packages.py 11 Oct 2007 20:49:59 -0000 >@@ -209,6 +209,7 @@ > "/var/log/wtmp", "/var/run/utmp", > "/dev/log", "/var/lib/rpm", "/", "/etc/raidtab", > "/etc/mdadm.conf", "/etc/hosts", "/etc/sysconfig/network", >+ "/etc/udev/rules.d/70-persistent-net.rules", > "/root/install.log", "/root/install.log.syslog", > "/etc/shadow", "/etc/shadow-", "/etc/gshadow"] >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264901
: 224801 |
240651
|
240661
|
240671
|
240681
|
240691