Merge lp:~oddbloke/vmbuilder/automated-ec2-builds into lp:~ubuntu-on-ec2/vmbuilder/automated-ec2-builds

Proposed by Dan Watkins
Status: Merged
Merged at revision: 734
Proposed branch: lp:~oddbloke/vmbuilder/automated-ec2-builds
Merge into: lp:~ubuntu-on-ec2/vmbuilder/automated-ec2-builds
Diff against target: 11 lines (+7/-0)
1 file modified
live-config/common/hooks/070-clear-machine-id.chroot (+7/-0)
To merge this branch: bzr merge lp:~oddbloke/vmbuilder/automated-ec2-builds
Reviewer Review Type Date Requested Status
Francis Ginther (community) Approve
Philip Roche Approve
Review via email: mp+334980@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dan Watkins (oddbloke) wrote :

I've tested this in a VM, and seen images without /var/lib/dbus/machine-id built.

Revision history for this message
Philip Roche (philroche) wrote :

+1

review: Approve
Revision history for this message
Francis Ginther (fginther) wrote :

This should work.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'live-config/common/hooks/070-clear-machine-id.chroot'
2--- live-config/common/hooks/070-clear-machine-id.chroot 1970-01-01 00:00:00 +0000
3+++ live-config/common/hooks/070-clear-machine-id.chroot 2017-12-08 16:22:15 +0000
4@@ -0,0 +1,7 @@
5+#!/bin/sh -eux
6+
7+# machine-id should be generated on first boot of each instance, so we clear it
8+# out here. See https://bugs.launchpad.net/cloud-images/+bug/1731279 for more
9+# info.
10+
11+rm /var/lib/dbus/machine-id

Subscribers

People subscribed via source and target branches