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
|