From 9d799fac390fa39b50b0a065efc6c60dce91a8fd Mon Sep 17 00:00:00 2001 From: mikepell Date: Tue, 24 May 2022 19:10:46 +0000 Subject: [PATCH] update for machine-id newer versions will automatically populate an empty /etc/machine-id --- prepare-ubuntu-18.04-template.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/prepare-ubuntu-18.04-template.sh b/prepare-ubuntu-18.04-template.sh index 74c8dd7..f66b3b9 100755 --- a/prepare-ubuntu-18.04-template.sh +++ b/prepare-ubuntu-18.04-template.sh @@ -80,8 +80,9 @@ truncate -s0 /etc/hostname hostnamectl set-hostname localhost #remove machine-id -rm /etc/machine-id -rm /var/lib/dbus/machine-id +#rm /etc/machine-id +#rm /var/lib/dbus/machine-id +echo -n > /etc/machine-id #cleanup apt apt clean