machine-id is fixed on Ubuntu trusty image

Bug #1728003 reported by hirose31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
New
Undecided
Unassigned

Bug Description

Ubuntu trusy image which is generated by disk-image-create v2.9.0 has /var/lib/dbus/machine-id, so all servers which are created from this image have same machine-id.

$ disk-image-create --version
2.9.0

$ DIB_RELEASE=trusty disk-image-create ubuntu dhcp-all-interfaces baremetal bootloader -o trusty

$ sudo modprobe nbd max_part=63
$ sudo qemu-nbd -c /dev/nbd0 trusty.qcow2
$ sudo mount /dev/nbd0 /mnt

$ cat /mnt/var/lib/dbus/machine-id
674157fda7265f4743ceeb9759f23947

$ cat /mnt/etc/machine-id
cat: /mnt/etc/machine-id: No such file or directory

$ sudo umount /mnt
$ sudo qemu-nbd -d /dev/nbd0

I think we should unlink /var/lib/dbus/machine-id.

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.