opnsense-src/libexec/rc
Tijl Coosemans 71d88613d1 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 hyphens
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
Approved by:	re (cperciva)
Differential Revision:	https://reviews.freebsd.org/D38811

(cherry picked from commit ecad3f5c4d)
(cherry picked from commit d6852eed98ed32ad51120a22aa1ebdf0601917b3)
2023-03-12 22:46:07 +01:00
..
rc.d rc.d: Generate machine-id from hostid_save 2023-03-12 22:46:07 +01:00
Makefile Revert r359294 per manu's request 2020-03-25 08:35:55 +00:00
netstart
network.subr network.subr: Fix infinite loop 2023-01-31 18:53:11 -08:00
pccard_ether
rc Replace literal uses of /usr/local with a variable 2020-11-03 12:29:10 +00: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-12 22:46:07 +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-24 09:03:40 +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.sendmail pkgbase: Really move rc.sendmail 2019-05-22 07:40:39 +00:00
rc.shutdown rc.shutdown: kill shutdown process after logging message 2019-12-07 00:33:08 +00:00
rc.subr rc.subr: Make sure oomprotect protects existing children 2022-07-22 02:09:10 +02:00
rc.suspend