From 394fd987efd4ac0e45cfa96061cbd5709e3cc111 Mon Sep 17 00:00:00 2001 From: Philip Date: Sat, 1 Aug 2015 14:41:02 +0200 Subject: [PATCH] [util-livecd] delete if /etc/machineid exists --- lib/util-livecd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/util-livecd.sh b/lib/util-livecd.sh index d011472..a1804b4 100644 --- a/lib/util-livecd.sh +++ b/lib/util-livecd.sh @@ -348,6 +348,11 @@ rm_kalu(){ ### end shared functions with cli installer configure_machine_id(){ + if [ -e "/etc/machine-id" ] ; then + # delete existing machine-id + echo "Deleting existing machine-id ..." >> /var/log/livecd.log + rm /etc/machine-id + fi # set unique machine-id echo "Setting machine-id ..." >> /var/log/livecd.log dbus-uuidgen --ensure=/etc/machine-id