From 30c3f7e721709b354d2a98b48d533c359d57bb87 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Tue, 27 Sep 2016 20:17:46 +0100 Subject: [PATCH] Touch the machine-id file So is seems that if you remove the machine-id file it won't regenerate the file but if you touch the file and leave it empty on boot it'll put a new machine-id in the empty file. So work around this bug ("feature"?) by touching the file so we don't have other issues in the process. We're track the outcome of this in RHBZ 1379800 --- fedora-arm-base.ks | 1 + fedora-cloud-base.ks | 1 + fedora-docker-base.ks | 1 + fedora-live-base.ks | 1 + 4 files changed, 4 insertions(+) diff --git a/fedora-arm-base.ks b/fedora-arm-base.ks index 70c603d..08f8c84 100644 --- a/fedora-arm-base.ks +++ b/fedora-arm-base.ks @@ -87,6 +87,7 @@ dnf -y remove dracut-config-generic # Remove machine-id on pre generated images rm -f /etc/machine-id +touch /etc/machine-id %end diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks index ac72623..6cdd70d 100644 --- a/fedora-cloud-base.ks +++ b/fedora-cloud-base.ks @@ -276,6 +276,7 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-ens3 # Remove machine-id on pre generated images rm -f /etc/machine-id +touch /etc/machine-id %end diff --git a/fedora-docker-base.ks b/fedora-docker-base.ks index bcbb58e..1c7545f 100644 --- a/fedora-docker-base.ks +++ b/fedora-docker-base.ks @@ -89,5 +89,6 @@ systemd-tmpfiles --create --boot # Remove machine-id on pre generated images rm -f /etc/machine-id +touch /etc/machine-id %end diff --git a/fedora-live-base.ks b/fedora-live-base.ks index 9bf998b..3c5f279 100644 --- a/fedora-live-base.ks +++ b/fedora-live-base.ks @@ -327,6 +327,7 @@ rm -f /boot/*-rescue* # Remove machine-id on pre generated images rm -f /etc/machine-id +touch /etc/machine-id %end