RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1455419 - ifcfg-* should exclude .old extension __sed_discard_ignored_files
Summary: ifcfg-* should exclude .old extension __sed_discard_ignored_files
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: initscripts
Version: 7.3
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: David Kaspar // Dee'Kej
QA Contact: Daniel Rusek
Petr Bokoc
Depends On:
Blocks: 1465901
TreeView+ depends on / blocked
Reported: 2017-05-25 05:38 UTC by Jozef Mlich
Modified: 2021-06-10 12:21 UTC (History)
3 users (show)

Fixed In Version: initscripts-9.49.40-2.el7
Doc Type: Bug Fix
Doc Text:
Files with the `.old` extension are now ignored by network scripts Network scripts in Red Hat Enterprise Linux contain a regular expression which causes them to ignore `ifcfg-*` configuration files with certain extensions, such as `.bak`, `.rpmnew` or `.rpmold`. However, the `.old` extension was missing from this set, despite being used in documentation and in common practice. This update adds the `.old` extension into the list, which ensures that script files which use it will be ignored by network scripts as expected.
Clone Of:
Last Closed: 2018-04-10 18:24:45 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0983 0 None None None 2018-04-10 18:26:24 UTC

Description Jozef Mlich 2017-05-25 05:38:52 UTC
In documentation is specifically said:

It is recommended not to store backup ifcfg files in the same location as the live ones. The script literally does ifcfg-* with an exclude only for these extensions: .old, .orig, .rpmnew, .rpmorig, and .rpmsave. The best way is not to store backup files anywhere within the /etc/ directory. 


The /etc/sysconfig/network-scripts/network-functions is using /etc/init.d/functions namely variable __sed_discard_ignored_files:


This caused rhbz#1381314 rhbz#83126 . Please fix initscripts package or documentation.

Comment 2 David Kaspar // Dee'Kej 2017-05-25 08:55:58 UTC
Hello Jozef,

thanks for the report. Unfortunately it's too late to fix this in RHEL-7.4.
I'm proposing this for RHEL-7.5. I believe you will be able to workaround this yourself in the meantime. ;)

Best regards,


Comment 3 David Kaspar // Dee'Kej 2017-10-30 17:18:35 UTC
Already fixed in upstream:

Comment 9 errata-xmlrpc 2018-04-10 18:24:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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