Bug 579816 - network initscript doesn't touch interfaces which name start with lo
Summary: network initscript doesn't touch interfaces which name start with lo
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 12
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-06 16:10 UTC by Eugene Syromyatnikov
Modified: 2014-03-17 03:22 UTC (History)
6 users (show)

Fixed In Version: initscripts-9.02.2-1
Clone Of:
: 579829 (view as bug list)
Environment:
Last Closed: 2010-05-22 01:48:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eugene Syromyatnikov 2010-04-06 16:10:31 UTC
Description of problem:
network initscript doesn't touch interfaces which name start with «lo» prefix.

Version-Release number of selected component (if applicable):
9.02.1-1.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create interface which name starts with lo (e. g., by adding to  /etc/udev/rules.d/70-persistent-net.rules interface with name «local»)
2. Add «ifcfg-local» file with config of interface
3. Try 
  
Actual results:
Interface with name «local» haven't been touched by initscript.

Expected results:
Interface with name «local» have been touched by initscript.

Additional info:
ad-hoc patch which makes things working:

--- network.old 2010-04-06 23:39:04.212315363 +0400
+++ network     2010-04-06 22:53:45.206536539 +0400
@@ -48,7 +48,7 @@
 # ignore aliases, alternative configurations, and editor backup files
 interfaces=$(ls ifcfg* | \
            LANG=C sed -e "$__sed_discard_ignored_files" \
-                      -e '/\(ifcfg-lo\|:\|ifcfg-.*-range\)/d' \
+                      -e '/\(^ifcfg-lo$\|:\|^ifcfg-.*-range$\)/d' \
                       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
            LANG=C sort -k 1,1 -k 2n | \
            LANG=C sed 's/ //')

Comment 1 Bill Nottingham 2010-04-06 17:32:15 UTC
http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=b0fe47d3631c329398e16c5cecaed87b7ed1e16b

Will land in rawhide/F-13 first, and in a F12 update at some point.

Comment 2 Eugene Syromyatnikov 2010-04-06 17:59:19 UTC
Hm. This still will not solve problem with interfaces which names end up with «ifcfg-lo» or contain «-range». This is almost hypothetical situations, though.

Comment 3 Fedora Update System 2010-04-28 19:03:14 UTC
initscripts-9.02.2-1 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/initscripts-9.02.2-1

Comment 4 Fedora Update System 2010-04-30 17:20:32 UTC
initscripts-9.02.2-1 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update initscripts'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/initscripts-9.02.2-1

Comment 5 Fedora Update System 2010-05-22 01:47:48 UTC
initscripts-9.02.2-1 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.