Using raspbian lite (2017-04-10) I've noticed that my /etc/machine-id
file changes on each boot. This causes me problems with journald.
I've found the log line where this happens:
Apr 24 19:05:59 raspberrypi systemd[1]: Installed transient /etc/machine-id file.
And tracked down the line of code where this happens. But I can't figure out how to stop it. I've tried writing an empty file to /etc/machine-id
, changing permissions, but no luck.
Has anyone experienced this? A work around is to manually write a /etc/machine-id
file with a UUID in it, but this becomes quite laborious when setting up a number of pis.
I can reproduce this with a fresh raspbian lite 2017-04-10 image, on a pi 2 and a pi zero w.
sudo reboot