diff options
Diffstat (limited to 'src/conf_mode/host_name.py')
-rwxr-xr-x | src/conf_mode/host_name.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py index 11612637c..3b3958f7f 100755 --- a/src/conf_mode/host_name.py +++ b/src/conf_mode/host_name.py @@ -98,7 +98,7 @@ def generate(config): def apply(config): """Apply configuration""" - os.system("hostnamectl set-hostname {0}".format(config["fqdn"])) + os.system("hostnamectl set-hostname --static {0}".format(config["fqdn"])) # restart services that use the hostname os.system("systemctl restart rsyslog.service") |