[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH rhel6-branch] Honour network --nodefroute option also in case of network configuration.

On Mon, 31 Jan 2011, Radek Vykydal wrote:

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


David Cantrell <dcantrell redhat com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Honolulu, HI | UTC-10

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]