Bug 1212061 - VLAN options in ifcfg file for CTC device
Summary: VLAN options in ifcfg file for CTC device
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 22
Hardware: s390x
OS: Linux
high
high
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2015-04-15 13:32 UTC by Jan Stodola
Modified: 2015-04-26 12:57 UTC (History)
4 users (show)

Fixed In Version: dracut-041-10.fc22.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-26 12:57:04 UTC
Type: Bug


Attachments (Terms of Use)
journalctl from installation with rd.debug (1.35 MB, text/plain)
2015-04-15 13:33 UTC, Jan Stodola
no flags Details

Description Jan Stodola 2015-04-15 13:32:03 UTC
Description of problem:
ifcfg config file created for a CTC (channel-to-channel) network device contains VLAN options:

# Generated by dracut initrd
NAME="slccw0.0.d000"
SUBCHANNELS="0.0.d000,0.0.d001"
NETTYPE="ctc"
OPTIONS="protocol=0"
DEVICE="slccw0.0.d000"
ONBOOT=yes
NETBOOT=yes
UUID="4b28b6f4-f6de-4778-b8b3-ac0f136da891"
BOOTPROTO=none
IPADDR="192.168.1.2"
PREFIX="32"
GATEWAY="192.168.1.1"
TYPE=Vlan                   # these options
NAME="slccw0.0.d000"        # shouldn't be 
VLAN=yes                    # written to the
PHYSDEV=""                  # config file
DNS1="10.16.36.29"
DNS2="10.11.5.19"


Version-Release number of selected component (if applicable):
dracut-041-10.fc22.s390x.rpm

How reproducible:
always

Steps to Reproduce:
1. install F22/s390x via CTC network device

Actual results:
VLAN options in ifcfg file

Expected results:
VLAN options not written to ifcfg file

Comment 1 Jan Stodola 2015-04-15 13:33:14 UTC
Created attachment 1014755 [details]
journalctl from installation with rd.debug

Comment 2 Jan Stodola 2015-04-15 13:34:04 UTC
This patch works for me:

diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
index 3dcf304..f5de788 100755
--- a/modules.d/45ifcfg/write-ifcfg.sh
+++ b/modules.d/45ifcfg/write-ifcfg.sh
@@ -137,6 +137,7 @@ for netup in /tmp/net.*.did-setup ; do
     unset macaddr
     unset slave
     unset ethname
+    unset vlan
     [ -e /tmp/bond.${netif}.info ] && . /tmp/bond.${netif}.info
 
     uuid=$(cat /proc/sys/kernel/random/uuid)

Comment 4 Fedora Update System 2015-04-21 13:57:15 UTC
dracut-041-10.fc22.1 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dracut-041-10.fc22.1

Comment 5 Fedora Update System 2015-04-22 22:53:07 UTC
Package dracut-041-10.fc22.1:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dracut-041-10.fc22.1'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6659/dracut-041-10.fc22.1
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-04-26 12:57:04 UTC
dracut-041-10.fc22.1 has been pushed to the Fedora 22 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.