Codebase list live-build / b6004d1 share / hooks / 0180-remove-systemd-machine-id.hook.chroot
b6004d1

Tree @b6004d1 (Download .tar.gz)

0180-remove-systemd-machine-id.hook.chroot @b6004d1raw · history · blame

#!/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