6c2b1465cc
Deploying many nodes with the generated image shouldn't have the same /etc/machine-id so clearing it and letting systemd generate a new id upon first boot seems to be the best way to achieve this. Change-Id: I73d0577d31464521b3989312fd9d982a1312a268 Closes-bug: 1707526 Closes-bug: 1672461
12 lines
150 B
Bash
Executable File
12 lines
150 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [ -e /etc/machine-id ]; then
|
|
> /etc/machine-id
|
|
fi
|