lxc-clone improperly configures dhcp (config file)

Bug #851274 reported by Benjamin Saller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

While lxc-clone conceptually does the proper thing to /etc/dhcp/dhclient.conf its missing a critical ';' at the end of the line breaking how it works.

- sed -i "s/send host-name.*$/send host-name $hostname/" $rootfs/etc/dhcp/dhclient.conf
+ sed -i "s/send host-name.*$/send host-name $hostname;/" $rootfs/etc/dhcp/dhclient.conf

Adds the semicolon fixing the issue.

Related branches

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for this bug report, Benjamin.

Changed in lxc (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.7.5-0ubuntu8

---------------
lxc (0.7.5-0ubuntu8) oneiric; urgency=low

  * debian/patches/0007-fix-lxc-clone-hostname.patch: make sure $hostname
    is defined before it is first used. Reported by Benjamin Saller.
    (LP: #850205)
  * add missing ; at end of 'send hostname' in dhclient.conf (LP: #851274)
 -- Serge Hallyn <email address hidden> Wed, 14 Sep 2011 15:07:25 -0500

Changed in lxc (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.