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 > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 01-11-2011, 01:16 PM
Radek Vykydal
 
Default Fix write-out of network --hostname option in generated ks (#643008).

Update of already commited patch for the bug
(commit 1c0fc1e094dd3d258c0fcb98df6b90551c66b8f8).
It concerns cases of devices not configured in UI or ks, therefore
not having any BOOTPROTO setting, for which we don't want to write
--hostname setting.
---
network.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/network.py b/network.py
index 8774b14..48c1e79 100644
--- a/network.py
+++ b/network.py
@@ -550,7 +550,7 @@ class Network:

# hostname
if (self.overrideDHCPhostname or
- dev.get('BOOTPROTO').lower() != "dhcp"):
+ (dev.get('BOOTPROTO') and dev.get('BOOTPROTO').lower() != "dhcp")):
if (self.hostname and
self.hostname != "localhost.localdomain"):
line += " --hostname %s" % self.hostname
--
1.7.2

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

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