sysutils: use remote executor for hostnamectl as far as possible

So that hostnamectl can be omitted in host-base container image
This commit is contained in:
Yousong Zhou
2020-02-27 20:00:00 +08:00
parent 7506f3f1ed
commit 7b41ac0fb2
+1 -1
View File
@@ -22,7 +22,7 @@ import (
)
func setHostname7(name string) error {
return procutils.NewCommand("hostnamectl", "set-hostname", name).Run()
return procutils.NewRemoteCommandAsFarAsPossible("hostnamectl", "set-hostname", name).Run()
}
func setHostname6(name string) error {