/usr/share/live/build/hooks/normal/0180-remove-systemd-machine-id.hook.chroot is in open-infrastructure-system-build 20161101-lts2-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/sh
set -e
# Blank out systemd machine id. If it does not exist, systemd-journald
# will fail, but if it exists and is empty, systemd will automatically
# set up a new unique ID.
if [ -e /etc/machine-id ]
then
rm -f /etc/machine-id
: > /etc/machine-id
fi
|