Merge "Add remove-machine-id element" into stable/ocata

This commit is contained in:
Jenkins 2017-09-01 05:07:17 +00:00 committed by Gerrit Code Review
commit 95348c9c0c
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,9 @@
=================
remove-machine-id
=================
Removes the hardcoded ``/etc/machine-id`` from the resulting image, so that it
is regenerated during the next boot.
Leaving the file means that e.g. all instances will have the same machine-id.

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eu
set -o pipefail
# In order to make sure not all nodes have the same machine id, we need to
# remove it from the image and it should be generated on boot. LP#1672461
rm -f /etc/machine-id