← Back to team overview

touch-packages team mailing list archive

[Bug 1053048] Re: network-manager does not ignore comments in /etc/hostname

 

Closing the NM task as Invalid and opening one for systemd. NM uses
gethostname() (at least, in vivid), which should be returning the right
value.

Here if I reproduce the issue by adding a comment in /etc/hostname, I
get the hostname set very early at boot, much before NetworkManager is
started.

** Also affects: systemd (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: systemd (Ubuntu Quantal)

** Changed in: network-manager (Ubuntu)
       Status: Triaged => Invalid

** Changed in: systemd (Ubuntu)
       Status: New => Confirmed

** Changed in: systemd (Ubuntu)
   Importance: Undecided => Medium

** Changed in: network-manager (Ubuntu)
     Assignee: Mathieu Trudel-Lapierre (mathieu-tl) => (unassigned)

** Changed in: network-manager (Ubuntu Quantal)
     Assignee: Mathieu Trudel-Lapierre (mathieu-tl) => (unassigned)

** Summary changed:

- network-manager does not ignore comments in /etc/hostname
+ the system does not ignore comments in /etc/hostname

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1053048

Title:
  the system does not ignore comments in /etc/hostname

Status in network-manager package in Ubuntu:
  Invalid
Status in systemd package in Ubuntu:
  Confirmed
Status in network-manager source package in Quantal:
  Won't Fix

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/network-manager/+bug/1053048/+subscriptions