|
|
18971c |
From 32398e15250018c908d344060a7d9ab72c4ce5d0 Mon Sep 17 00:00:00 2001
|
|
|
18971c |
From: Fedora dracut team <dracut-maint@redhat.com>
|
|
|
18971c |
Date: Mon, 19 Oct 2015 18:27:11 +0200
|
|
|
18971c |
Subject: [PATCH] write-ifcfg: fix creating configuration for VLAN
|
|
|
18971c |
|
|
|
18971c |
Currently the physdev is unset before it is somehow applied.
|
|
|
18971c |
Also there is no DEVICE in the output.
|
|
|
18971c |
---
|
|
|
18971c |
modules.d/45ifcfg/write-ifcfg.sh | 5 ++---
|
|
|
18971c |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
18971c |
|
|
|
18971c |
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
|
|
|
18971c |
index 1e7f694a..f3a1c109 100755
|
|
|
18971c |
--- a/modules.d/45ifcfg/write-ifcfg.sh
|
|
|
18971c |
+++ b/modules.d/45ifcfg/write-ifcfg.sh
|
|
|
18971c |
@@ -141,7 +141,6 @@ for netup in /tmp/net.*.did-setup ; do
|
|
|
18971c |
unset slave
|
|
|
18971c |
unset ethname
|
|
|
18971c |
unset vlan
|
|
|
18971c |
- unset phydevice
|
|
|
18971c |
|
|
|
18971c |
[ -e /tmp/bond.${netif}.info ] && . /tmp/bond.${netif}.info
|
|
|
18971c |
[ -e /tmp/team.${netif}.info ] && . /tmp/team.${netif}.info
|
|
|
18971c |
@@ -165,7 +164,7 @@ for netup in /tmp/net.*.did-setup ; do
|
|
|
18971c |
{
|
|
|
18971c |
echo "# Generated by dracut initrd"
|
|
|
18971c |
echo "NAME=\"$netif\""
|
|
|
18971c |
- [ -z "$phydevice" ] && interface_bind "$netif" "$macaddr"
|
|
|
18971c |
+ [ -z "$vlan" ] && interface_bind "$netif" "$macaddr"
|
|
|
18971c |
echo "ONBOOT=yes"
|
|
|
18971c |
echo "NETBOOT=yes"
|
|
|
18971c |
echo "UUID=\"$uuid\""
|
|
|
18971c |
@@ -219,7 +218,7 @@ for netup in /tmp/net.*.did-setup ; do
|
|
|
18971c |
if [ -n "$vlan" ] ; then
|
|
|
18971c |
{
|
|
|
18971c |
echo "TYPE=Vlan"
|
|
|
18971c |
- echo "NAME=\"$netif\""
|
|
|
18971c |
+ echo "DEVICE=\"$netif\""
|
|
|
18971c |
echo "VLAN=yes"
|
|
|
18971c |
echo "PHYSDEV=\"$phydevice\""
|
|
|
18971c |
} >> /tmp/ifcfg/ifcfg-$netif
|