Summary: | hostnamectl set-hostname destroys /etc/machine-info | ||
---|---|---|---|
Product: | systemd | Reporter: | Brian "Redbeard" Harrington <brian.harrington> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED NOTABUG | QA Contact: | systemd-bugs |
Severity: | minor | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Brian "Redbeard" Harrington
2014-03-13 08:09:25 UTC
"systemctl set-hostname" sets all three hostnames by default. If you want to set only the pretty, or only the transient, or only the static one use switches like --pretty, --transient, --static. You can even combine them... "systemctl set-hostname" will set all three names, then detect that there's no point in keeping the pretty name in place if it is char-for-char identical with the static one, and simply removes the file since there's nothing else in there. So, this is intended operation. And explained in the man page... |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.