loader.efi: detect console from ConOut/ConOutDev
Walk devices listed in ConOut (ConOutDev) variable(s) and set up console accordingly.
We need to check both variables because ConOut may be missing. In fact, both of them may be missing, in which case, we default to efi console (video). I have witnessed only laptop missing both ConOut and ConOutDev, therefore fall back to video should be justified (no serial on laptops).
Testing done: tested on my supermicro (physical system). For test, one should remove console and ttyX-mode lines from /boot/solaris/bootenv.rc and remove console line from /boot/defaults/loader.conf.
Updated by Toomas Soome 5 months ago
Gary Mills wrote in #note-3:
I have this setting in /boot/loader.conf on my supermicro system:
Will this still work, or should I move it?
it is fine; what we try to do here (and in 12389 for BIOS version) is, we set initial value for console, any later settings will override the detected value.
Updated by Electric Monk about 1 month ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit e27085df90712f99e5ea3d44ab0b83c73ac1bf52 Author: Toomas Soome <firstname.lastname@example.org> Date: 2022-07-11T07:42:55.000Z 14580 loader.efi: detect console from ConOut/ConOutDev Reviewed by: Garrett D'Amore <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>