[PATCH 6/7] bonding support: only in loader (i.e. for activated devices)

Radek Vykydal rvykydal at redhat.com
Mon Aug 27 08:46:39 UTC 2012


We do not support just writing configuration yet, so give a
log message about it.
---
 kickstart.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index 0a3b37d..1f88f8f 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -644,6 +644,9 @@ class NetworkData(commands.network.RHEL6_NetworkData):
             if self.hostname:
                 # Only set hostname
                 return
+            elif self.bondslaves:
+                log.info("bond %s not configured, only supported for devices activated during installation" % device)
+                return
             else:
                 raise KickstartValueError, formatErrorMsg(self.lineno, msg="The provided network interface %s does not exist" % device)
 
-- 
1.7.4



More information about the anaconda-patches mailing list