Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 794640 - Handbook needs improvements to systemd installation instructions
Summary: Handbook needs improvements to systemd installation instructions
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Handbook Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-06 22:31 UTC by Robin Johnson
Modified: 2022-07-15 09:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2021-06-06 22:31:14 UTC
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.
Comment 1 Georgy Yakovlev archtester gentoo-dev 2021-06-06 22:37:23 UTC
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.
Comment 2 Matt Turner gentoo-dev 2021-06-06 22:42:26 UTC
> - Stages should NOT ship that file.

Fix cherry-picked to catalyst-3.0.18.

Reassigning to wiki@ for documentation changes.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2022-01-07 17:18:23 UTC
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
Comment 4 Matthew Marchese Gentoo Infrastructure gentoo-dev 2022-07-15 09:03:26 UTC
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.