Re: [PATCH 26/27] Set network devices configured in ks to be nm-controlled (#520146).

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack

On Wed, 5 May 2010, Radek Vykydal wrote:

Use case - ks containing this:

network --device=eth0 --bootproto=dhcp
network --device=wlan0 --bootproto=dhcp --essid=foo \
--wepkey=00000000000000000000000000 --onboot=yes

eth0 is brought up during installation, wlan0 is configured
and brought up succesfully after boot.
---
kickstart.py |    3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index 2278b7e..a13fddf 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -581,6 +581,8 @@ class NetworkData(commands.network.F8_NetworkData):
                else:
                    dev.set (("onboot", "no"))

+                dev.set(("NM_CONTROLLED", "yes"))
+
                if self.bootProto == "static":
                    if (self.ip):
                        dev.set (("ipaddr", self.ip))
@@ -614,7 +616,6 @@ class NetworkData(commands.network.F8_NetworkData):
                      anaconda.methodstr.startswith("nfs:")))
        if needs_net and not network.hasActiveNetDev():
            log.info("Bringing up network in stage2 kickstart ...")
-            dev.set (('NM_CONTROLLED', 'yes'))
            rc = anaconda.network.bringUp()
            log.info("Network setup %s" % (rc and 'succeeded' or 'failed',))



- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAkvooZUACgkQ5hsjjIy1VklbYwCfUmfhJBUi9n1vZTBtOsYTUAhg
1pYAoM++GmE/i5r3Me3dcb2JaxdoQHJh
=tUiU
-----END PGP SIGNATURE-----

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux