stage3-amd64-systemd-20210602T214502Z.tar.xz contains /etc/machine-id. - Stages should NOT ship that file. - The Install guide should clearly state that systemd-machine-id-setup should be called during install. - The install guide should state that mkdir -p /boot/$(</etc/machine-id) should be run.
mkdir -p /boot/$(</etc/machine-id) is only needed if you use installkernel-systemd-boot. even systemd stages use installkernel-gentoo by default and classic /boot layout so that part of the bug should be separated, but also documented ofc for users switching to systemd's /boot layout.
> - Stages should NOT ship that file. Fix cherry-picked to catalyst-3.0.18. Reassigning to wiki@ for documentation changes.
Added --setup-machine-id option to the systemd-firstboot command in https://wiki.gentoo.org/wiki/Handbook:Parts/Installation/System which appears to set /etc/machine-id to a random value. I am not versed in systemd so those who are can adjust as needed. Any Gentoo developer has access to do so
I added more context as to how running these commands will help with first boot post-installation. https://wiki.gentoo.org/index.php?title=Handbook%3AParts%2FInstallation%2FSystem&type=revision&diff=1077446&oldid=1074224 If anyone else would like to add some additional context, please do. This bug can be closed now.