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
Unknown Object (File)
Tue, Apr 15, 5:20 PM
Unknown Object (File)
Sun, Apr 6, 8:22 AM
Unknown Object (File)
Mar 15 2025, 7:18 PM
Unknown Object (File)
Mar 13 2025, 12:23 PM
Unknown Object (File)
Feb 7 2025, 6:11 AM
Unknown Object (File)
Feb 3 2025, 12:50 PM
Unknown Object (File)
Jan 30 2025, 9:16 PM
Unknown Object (File)
Sep 21 2024, 10:49 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable