Merge "Add remove-machine-id element" into stable/ocata
This commit is contained in:
commit
95348c9c0c
|
@ -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.
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue