[PATCH master] Replace hostname with hostnamectl (#989584)
Radek Vykydal
rvykydal at redhat.com
Tue Jul 30 12:35:45 UTC 2013
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)
--
1.7.11.7
More information about the anaconda-patches
mailing list