/etc/machine-id as currently generated by rc.d/machine_id contains hyphens which is incorrect according to the Linux documentation. As a consequence programs like dbus ignore the file. It would be best if this could be fixed before the release of 13.2.
rc.d/hostid_save provides similar functionality.
This patch is a proposal to generate /etc/machine-id from rc.d/hostid_save so it contains the same uuid but with hyphens removed. They are removed using a shell function because other utilities may not be available yet when rc.d/hostid_save runs.
The logic in rc.d/hostid_save has to be changed a bit to eliminate an early 'exit' call.