Honour network --nodefroute option also in case of network configuration.
Related: rhbz#638131
Not only when the device is activated which happens in loader if --activate
option is used. For other devices, the kickstart configuration happens in
stage 2.
---
kickstart.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/kickstart.py b/kickstart.py
index 1049cfd..3ce4ad1 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -640,6 +640,9 @@ class NetworkData(commands.network.RHEL6_NetworkData):
if self.gateway != "":
anaconda.id.network.setGateway(self.gateway, dev.iface)
+ if self.nodefroute:
+ dev.set (("DEFROUTE", "no"))
+
needs_net = (anaconda.methodstr and
(anaconda.methodstr.startswith("http:") or
anaconda.methodstr.startswith("ftp:") or
--
1.7.2
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list