Skip to content

Commit

Permalink
Workaround 1285805 - create /etc/machine-id if it does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelton committed Nov 30, 2015
1 parent 5a91e88 commit e8a8030
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ipa-server-configure-first
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ function upgrade_server () {
if ! [ -f /etc/ipa/ca.crt ] ; then
( cd /data-template && tar cf - . ) | ( cd /data && tar xf - )
fi
systemd-tmpfiles --remove --create 2>&1 | grep -v 'Failed to replace specifiers' || :
if ! [ -s /etc/machine-id ] ; then
uuidgen | sed 's/-//g' > /etc/machine-id
fi
systemd-tmpfiles --remove --create

find /run ! -type d | xargs rm -f
rm -rf /tmp/*
Expand Down

0 comments on commit e8a8030

Please sign in to comment.