Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   Honour network --nodefroute option also in case of network configuration. (http://www.linux-archive.org/ubuntu-kernel-team/483527-honour-network-nodefroute-option-also-case-network-configuration.html)

Radek Vykydal 01-31-2011 05:46 PM

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


All times are GMT. The time now is 04:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.