Page MenuHomeFreeBSD

rc.d/hostid: Skip warning on systems w/o smbios
ClosedPublic

Authored by cperciva on Aug 12 2022, 11:49 PM.
Tags
None
Referenced Files
F163073211: D36185.diff
Sun, Jul 19, 8:25 PM
F163065159: D36185.diff
Sun, Jul 19, 6:41 PM
Unknown Object (File)
Wed, Jul 15, 9:51 PM
Unknown Object (File)
Tue, Jun 23, 5:27 AM
Unknown Object (File)
Jun 11 2026, 2:40 AM
Unknown Object (File)
Jun 9 2026, 7:08 AM
Unknown Object (File)
May 7 2026, 11:06 AM
Unknown Object (File)
May 4 2026, 6:28 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46914
Build 43803: arc lint + arc unit