Re: Systemd, overlayfs, and machine-id problem

Khem Raj

On 10/27/20 2:23 AM, Morten Bruun wrote:
In our current Yocto project we are using an overlayfs on top of /etc
This seems to trigger the systemd-machine-id-setup service which fails with the error below:
systemd-machine-id-setup[204]: Failed to unmount transient /etc/machine-id file: Invalid argument.
The failed service then triggers an error in the test_systemd_failed test in the systemd testimage suite.
As far as I understand the machine-id setup is triggered because path_is_mount_point() can report false positives when using overlayfs.
Is there a way to fix this?
maybe pregeenerate machine ID sometimes you can seed it from CPU Id or soc ID from eeprom.

Kind regards,

Join to automatically receive all group messages.