El 20/05/13 05:13, Lukas Ocilka escribió:
Michal, please, check the diffs and proposed changes below. Does it make
sense to you? Did you have any plans for unification?
On 05/19/2013 11:19 PM, Cristian Rodríguez wrote:
---
src/clients/save_network.ycp | 2 +-
src/lan/help.ycp | 2 +-
src/modules/DNS.ycp | 8 ++++----
testsuite/tests/Network_YaPI.out | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/clients/save_network.ycp b/src/clients/save_network.ycp
index 429051d..5a5a0a4 100644
--- a/src/clients/save_network.ycp
+++ b/src/clients/save_network.ycp
@@ -376,7 +376,7 @@ void CreateOtherNetworkFiles(){
// create hostname
if (size(InstallInf["hostname"]:"")>0){
y2milestone("Write HOSTNAME: %1", InstallInf["hostname"]:"");
- SCR::Write(.target.string, "/etc/HOSTNAME",
InstallInf["hostname"]:"");
+ SCR::Write(.target.string, "/etc/hostname",
InstallInf["hostname"]:"");
}
Hostname.ycp in yast2.rpm seems like a better place
Ok, so there is a single place in the universe where this is done but
code does not call it.. good.. that should make everything less ugly and
could be implemented in a different fashion.
What is the right way for Yast to call systemd-hostnamed via DBUS ?
It must call the SetHostname() in the "write hostname" operation and
read the property Hostname to retrive the information.
gdbus introspect --system --dest org.freedesktop.hostname1 --object-path
/org/freedesktop/hostname1 node /org/freedesktop/hostname1
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]