freebsd-dev/libexec
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
..
atf atf_pytest_wrapper: fix pytest output truncation 2022-12-28 17:31:14 +00:00
atrun
blacklistd-helper
bootpd bootptest: Fix a typo in a source code comment 2022-09-15 10:28:52 +02:00
comsat
dma dma: dma.conf.5 as MLINK to dma.8 2023-01-06 09:40:45 -05:00
fingerd
flua flua: chown(2) binding, fix bad copy/paste 2022-11-25 09:05:40 +01:00
ftpd Put OPIE to rest. 2022-10-02 03:37:29 +02:00
getty getty: Avoid NULL deref if stdin is not a tty. 2022-11-04 15:54:01 +01:00
hyperv pkgbase: Create a FreeBSD-hyperv package 2021-09-07 10:24:54 +02:00
mail.local
makewhatis.local
mknetid
phttpget
pppoed
rbootd
rc rc.d: Generate machine-id from hostid_save 2023-03-09 10:31:55 +01:00
revnetgroup
rpc.rquotad pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
rtld-elf sys/param.h: Add _WANT_P_OSREL 2023-02-15 02:43:18 +02:00
rtld-elf32
save-entropy
smrsh
talkd
tcpd pkgbase: Create a FreeBSD-tcpd package 2021-12-21 10:17:31 +01:00
tests
tftp-proxy (t)ftp-proxy: use libpfctl 2021-04-10 11:16:02 +02:00
tftpd tftpd: Disable -Wformat-nonliteral for GCC. 2022-11-22 11:12:06 -08:00
ulog-helper
ypxfr pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
Makefile hyperv: Build and install where supported 2023-02-01 10:21:57 -07:00
Makefile.inc