Systemd, overlayfs, and machine-id problem

Morten Bruun


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?

Kind regards,

Join to automatically receive all group messages.