freebsd-src/libexec/rc
Colin Percival cc495d3b67 rc.d/hostid: Skip warning on systems w/o smbios
The first time a FreeBSD system boots, it obtains a hostuuid and hostid
from the smbios.system.uuid kernel environment variable.  If this value
is found to be invalid, a warning is printed and the boot pauses for
two seconds to give the user a chance to read it.

If the FreeBSD kernel is launched directly in a virtual machine rather
than via the FreeBSD boot loader, the smbios.system.uuid environment
variable might not be set; in this case, there's no need to alert the
user and delay the boot process since the lack of a "hardware" uuid is
entirely expected.

Distinguish between the cases of "invalid UUID" and "no UUID", warning
and delaying the boot only in the former case.  In both cases we still
generate a random UUID in software.

Reviewed by:	delphij
Sponsored by:	https://www.patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D36185
2022-08-13 15:58:16 -07:00
..
rc.d rc.d/hostid: Skip warning on systems w/o smbios 2022-08-13 15:58:16 -07:00
tests rc: Start testing the rc(8) framework (beginning with *_oomprotect) 2022-07-26 15:39:39 +02:00
Makefile rc: Start testing the rc(8) framework (beginning with *_oomprotect) 2022-07-26 15:39:39 +02:00
netstart Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
network.subr rc: network.subr improve network6_getladdr() 2021-12-13 22:12:44 +00: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: Add a zpoolreguid rc.d script 2022-05-30 10:43:44 -04:00
rc.firewall rc.firewall: Merge two identical conditions into one. 2020-07-23 15:03:28 +00:00
rc.initdiskless Make mdmfs verbose if diskless boot is verbose. 2019-04-26 14:44:50 +00: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: Fix a typo 2022-07-08 21:35:34 +02:00
rc.suspend