[prev in list] [next in list] [prev in thread] [next in thread]
List: cobbler-devel
Subject: [PATCH] only use a slave interface if it has a MAC address defined
From: "Parsons, Aron" <parsonsa () bit-sys ! com>
Date: 2011-11-14 23:04:48
Message-ID: 38BF0DD94618A6449F9DC97ECCB360A90DB8F631 () suhn-mbx1 ! SIX3 ! local
[Download RAW message or body]
This patch alters the pre_install_network_config snippet to only use slave =
interfaces that have a MAC address defined. Otherwise, if it picks a slave=
interface without a MAC, /tmp/pre_install_network_config is not generated =
because the grep statement for the MAC is empty. This then causes Anaconda=
to error out because the included file is missing.
/aron
["0001-only-use-a-slave-interface-if-it-has-a-MAC-address-d.patch" (application/octet-stream)]
From 55efcf285fb367ecfbadb134507945a11192bfc5 Mon Sep 17 00:00:00 2001
From: Aron Parsons <parsonsa@bit-sys.com>
Date: Mon, 14 Nov 2011 17:50:04 -0500
Subject: [PATCH] only use a slave interface if it has a MAC address defined
---
snippets/pre_install_network_config | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/snippets/pre_install_network_config \
b/snippets/pre_install_network_config index 8bb3495..029fdd2 100644
--- a/snippets/pre_install_network_config
+++ b/snippets/pre_install_network_config
@@ -45,7 +45,7 @@
## Find a slave for this interface
#for $tiname in $ikeys
#set $tidata = $interfaces[$tiname]
- #if $tidata["interface_type"].lower() in \
("slave","bond_slave","bridge_slave") and $tidata["interface_master"].lower() == \
$iname + #if $tidata["interface_type"].lower() in \
("slave","bond_slave","bridge_slave") and $tidata["interface_master"].lower() == \
$iname and $tidata["mac_address"] != "" #set $mac = $tidata["mac_address"]
# Found a slave for this interface: $tiname ($mac)
#break
--
1.7.1
[Attachment #4 (text/plain)]
_______________________________________________
cobbler-devel mailing list
cobbler-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic