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
This commit is contained in:
Peter Robinson 2016-09-27 20:17:46 +01:00 committed by Peter Robinson
parent f626ce246d
commit 73645f341e
4 changed files with 4 additions and 0 deletions

View File

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

View File

@ -272,6 +272,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

View File

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

View File

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