[PATCH master] Replace hostname with hostnamectl (#989584)
Vratislav Podzimek
vpodzime at redhat.com
Tue Jul 30 13:00:38 UTC 2013
On Tue, 2013-07-30 at 14:35 +0200, Radek Vykydal wrote:
> Based on patch by Jóhann B. Guðmundsson.
> ---
> anaconda.spec.in | 1 -
> pyanaconda/network.py | 2 +-
> 2 files changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/anaconda.spec.in b/anaconda.spec.in
> index 39535bc..536da95 100644
> --- a/anaconda.spec.in
> +++ b/anaconda.spec.in
> @@ -127,7 +127,6 @@ Requires: kbd
> Requires: chrony
> Requires: ntpdate
> Requires: rsync
> -Requires: hostname
> %ifnarch s390 s390x
> Requires: fcoe-utils >= %{fcoeutilsver}
> %endif
> diff --git a/pyanaconda/network.py b/pyanaconda/network.py
> index 75ba6d1..6f14cc4 100644
> --- a/pyanaconda/network.py
> +++ b/pyanaconda/network.py
> @@ -672,7 +672,7 @@ def set_hostname(hn):
> return
>
> log.info("setting installation environment hostname to %s" % hn)
> - iutil.execWithRedirect("hostname", [hn])
> + iutil.execWithRedirect("hostnamectl", ["set-hostname", hn])
>
> def write_hostname(rootpath, ksdata, overwrite=False):
> cfgfile = os.path.normpath(rootpath + hostnameFile)
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list