diff options
| author | Tijl Coosemans <tijl@FreeBSD.org> | 2023-02-15 20:09:51 +0000 |
|---|---|---|
| committer | Tijl Coosemans <tijl@FreeBSD.org> | 2023-03-12 08:59:58 +0000 |
| commit | d6852eed98ed32ad51120a22aa1ebdf0601917b3 (patch) | |
| tree | bd6fc61f76005133049bb61ecce7ccffcf204aa5 /libexec/bootpd | |
| parent | baf1e9713969fccdaf7481e3568ca89b7237dafd (diff) | |
rc.d: Generate machine-id from hostid_save
rc.d/hostid_save saves a UUID generated by rc.d/hostid in /etc/hostid.
Store the same UUID, without hyphens, in /etc/machine-id. The hypĥens
are removed with a shell function because hostid_save runs before file
systems are mounted so other tools may not be available yet.
This eliminates some duplication between hostid and machine-id and for
virtual machines machine-id now contains the UUID configured in the
hypervisor like it does on Linux.
Reviewed by: delphij
Discussed with: bapt
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38811
(cherry picked from commit ecad3f5c4d922f93ceba455f8bff1c54e1ed4174)
Diffstat (limited to 'libexec/bootpd')
0 files changed, 0 insertions, 0 deletions
