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 > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 12-07-2010, 02:20 PM
Martin Gracik
 
Default Set installer environment hostname for sw raid LABELs (#640743)

Just remove the spaces around = and in the [] in execWithRedirect call,
but other than that, ACK.


On Tue, 2010-12-07 at 16:08 +0100, Radek Vykydal wrote:
> mdadm tool will use it when creating the device.
> ---
> iw/network_gui.py | 2 +-
> network.py | 3 +++
> 2 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/iw/network_gui.py b/iw/network_gui.py
> index 4188cc5..702d227 100644
> --- a/iw/network_gui.py
> +++ b/iw/network_gui.py
> @@ -95,7 +95,7 @@ class NetworkWindow(InstallWindow):
> custom_icon="error")
> self.hostnameError()
>
> - self.anaconda.id.network.hostname = hostname
> + self.anaconda.id.network.setHostname(hostname)
> return None
>
> def NMCEExited(pid, condition, anaconda):
> diff --git a/network.py b/network.py
> index f66d62f..a3a6b96 100644
> --- a/network.py
> +++ b/network.py
> @@ -387,6 +387,9 @@ class Network:
>
> def setHostname(self, hn):
> self.hostname = hn
> + log.info("setting installation environment hostname to %s" % hn)
> + iutil.execWithRedirect("hostname", [ "-v", hn ],
> + stdout = "/dev/tty5", stderr="/dev/tty5")
>
> def unsetDNS(self, devname):
> """Unset all DNS* ifcfg parameters."""

--
Martin Gracik <mgracik@redhat.com>

_______________________________________________
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 09:40 AM.

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