freebsd-dev/libexec/rc
Tijl Coosemans ecad3f5c4d 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
2023-03-09 10:31:55 +01:00
..
rc.d rc.d: Generate machine-id from hostid_save 2023-03-09 10:31:55 +01:00
tests rc: Start testing the rc(8) framework (beginning with *_oomprotect) 2022-07-26 15:39:39 +02:00
Makefile rc.sendmail: remove unused script 2022-11-09 16:55:18 +01:00
netstart Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
network.subr network.subr: Fix infinite loop 2023-01-02 10:20:05 -08:00
pccard_ether
rc rc: Allow the removal of firstboot_sentinel on read-only file systems 2022-02-10 12:43:19 -07:00
rc.bsdextended pkgbase: Really move rc.bsdextended 2019-05-22 07:39:59 +00:00
rc.conf rc.d: Generate machine-id from hostid_save 2023-03-09 10:31:55 +01:00
rc.firewall rc.firewall: Merge two identical conditions into one. 2020-07-23 15:03:28 +00:00
rc.initdiskless rc.initdiskless: Fix a typo in a comment 2023-01-19 14:17:37 +01:00
rc.resume rcorder(8): add support for /etc/rc.resume, so it calls "rcorder -k resume" 2018-10-27 17:21:13 +00:00
rc.shutdown rc.shutdown: kill shutdown process after logging message 2019-12-07 00:33:08 +00:00
rc.subr rc.subr: Minor formatting fix for ac102a2a6 2022-12-28 16:00:56 -08:00
rc.suspend