FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 05-05-2010, 11:05 AM
Radek Vykydal
 
Default Set network devices configured in ks to be nm-controlled (#520146).

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',))

--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-11-2010, 12:15 AM
David Cantrell
 
Default Set network devices configured in ks to be nm-controlled (#520146).

-----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@redhat.com>

Red Hat / Honolulu, HI

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

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

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

Thread Tools




All times are GMT. The time now is 07:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org