Codebase list live-build / 88662380-c28d-4610-98b5-522d255c8a26/main share / hooks / normal / 0180-remove-systemd-machine-id.hook.chroot
88662380-c28d-4610-98b5-522d255c8a26/main

Tree @88662380-c28d-4610-98b5-522d255c8a26/main (Download .tar.gz)

0180-remove-systemd-machine-id.hook.chroot @88662380-c28d-4610-98b5-522d255c8a26/mainraw · 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