I fixed this upstream: http://cgit.freedesktop.org/systemd/systemd/commit/?id=139e5336286
This depends on a couple of previous patches, so not that easy to cherry-pick. If this is urgent/necessary for vivid, I'd apply the original patch http://lists.freedesktop.org/archives/systemd- devel/2015-May/031925.html which was inferior, but backports better. ** Changed in: systemd (Ubuntu) Status: In Progress => Fix Committed ** Changed in: systemd (Ubuntu) Importance: Wishlist => Medium -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1053048 Title: the system does not ignore comments in /etc/hostname Status in systemd package in Ubuntu: Fix Committed Bug description: As found at bug 1052664 $ dpkg-query --show network-manager network-manager 0.9.6.0-0ubuntu7 $ cat /etc/hostname # xxxxxxx by cloud-init domU-12-31-39-0C-6C-81 This *should* be ok, as per 'man hostname': -F, --file filename Read the host name from the specified file. Comments (lines starting with a `#') are ignored. However, network-manager does not ignore the comments. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1053048/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp