[util-livecd] delete if /etc/machineid exists

This commit is contained in:
Philip 2015-08-01 14:41:02 +02:00
parent c097cd427c
commit 394fd987ef

View file

@ -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