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 > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 10-05-2011, 11:14 AM
Radek Vykydal
 
Default Set default BOOTPROTO=dhcp for network service (minimal installs) (#741199)

NM assumes this default but network service (initscripts) won't start
the device without the BOOTPROTO value set.
---
loader/net.c | 2 ++
pyanaconda/gui.py | 2 --
pyanaconda/network.py | 5 -----
3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/loader/net.c b/loader/net.c
index db564ce..f8843c5 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -1200,6 +1200,8 @@ int writeDisabledIfcfgFile(char *device) {
fprintf(fp, "HWADDR=%s
", iface_mac2str(device));
fprintf(fp, "ONBOOT=no
");
fprintf(fp, "NM_CONTROLLED=no
");
+ /* default for network service, NM assumes it */
+ fprintf(fp, "BOOTPROTO=dhcp
");

if (fclose(fp) == EOF) {
return 3;
diff --git a/pyanaconda/gui.py b/pyanaconda/gui.py
index a8c28bd..a1d8613 100755
--- a/pyanaconda/gui.py
+++ b/pyanaconda/gui.py
@@ -925,8 +925,6 @@ class InstallInterface(InstallInterfaceBase):

# update ifcfg files for nm-c-e
self.anaconda.network.setNMControlledDevices(nm_co ntrolled_devices)
- if not just_setup:
- self.anaconda.network.presetDefaultConfiguration([install_device])

# we might want to do this only once
if self.anaconda.network.hasWirelessDev():
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 5f3a225..581ea72 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -565,11 +565,6 @@ class Network:
else:
device.set(('ONBOOT', 'yes'))

- def presetDefaultConfiguration(self, devices=None):
- for devname, device in self.netdevices.items():
- if not devices or devname in devices:
- device.set(('BOOTPROTO', 'dhcp'))
-
def getOnbootControlledIfaces(self):
ifaces = []
for iface, device in self.netdevices.items():
--
1.7.4

_______________________________________________
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 08:52 AM.

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