ab7ac88006
We had previously added an element to remove the machine id from the images however the script is not executable so it wasn't actually being run as part of the image building process. This change sets 70-remove-machine-id to be executable so that /etc/machine-id will actually be removed from the images during the building process. Additionally this changes the element to clear the file rather than delete it as if the file is missing, things may not work as expected. Change-Id: Id3f8c510801f8fcc1fc03415b0ebd23a2ff9da4c Closes-Bug: #1672361
11 lines
289 B
Bash
Executable File
11 lines
289 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# In order to make sure not all nodes have the same machine id, we need to
|
|
# clear it from the image and it should be generated on boot. LP#1672461
|
|
# It should be noted that if this file doesn't exist, odd interactions may
|
|
# occur.
|
|
:> /etc/machine-id
|