[systemd-bugs] [Bug 76102] New: hostnamectl set-hostname destroys /etc/machine-info
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 13 01:09:25 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=76102
Priority: medium
Bug ID: 76102
Assignee: systemd-bugs at lists.freedesktop.org
Summary: hostnamectl set-hostname destroys /etc/machine-info
QA Contact: systemd-bugs at lists.freedesktop.org
Severity: minor
Classification: Unclassified
OS: Linux (All)
Reporter: brian.harrington at coreos.com
Hardware: Other
Status: NEW
Version: unspecified
Component: general
Product: systemd
While doing some work in trying ensure hostnames get set correctly on CoreOS I
found that running hostnamectl set-hostname would destroy the file
/etc/machine-info.
In this case the hostname "host-10-0-0-7" is the hostname assigned via DHCP.
The file /etc/machine-info was created by hand and the system was subsequently
rebooted.
[bharrington at leviathan-alticon-net coreos]$ ssh 192.168.1.202
Warning: Permanently added '192.168.1.202' (RSA) to the list of known hosts.
Last login: Thu Mar 13 00:55:57 UTC 2014 from 192.168.1.63 on pts/1
______ ____ _____
/ ____/___ ________ / __ \/ ___/
/ / / __ \/ ___/ _ \/ / / /\__ \
/ /___/ /_/ / / / __/ /_/ /___/ /
\____/\____/_/ \___/\____//____/
core at host-10-0-0-7 ~ $
core at host-10-0-0-7 ~ $
core at host-10-0-0-7 ~ $
core at host-10-0-0-7 ~ $ cat /etc/machine-info
PRETTY_HOSTNAME=coreos-2.coreos.lab
core at host-10-0-0-7 ~ $ sudo hostnamectl set-hostname coreos-1.coreos.lab
core at host-10-0-0-7 ~ $ cat /etc/machine-info
cat: /etc/machine-info: No such file or directory
core at host-10-0-0-7 ~ $ hostname
coreos-1.coreos.lab
core at host-10-0-0-7 ~ $ cat /etc/hostname
coreos-1.coreos.lab
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140313/fb059edd/attachment.html>
More information about the systemd-bugs
mailing list