diskimage-builder/diskimage_builder/elements/sysprep/finalise.d/01-clear-machine-id

16 lines
226 B
Text
Raw Normal View History

#!/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
if [ -e /var/lib/dbus/machine-id ]; then
> /var/lib/dbus/machine-id
fi