Page MenuHomeFreeBSD

rc: syscons: Add UEFI special case
ClosedPublic

Authored by manu on Jan 31 2023, 3:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 26 2024, 8:51 AM
Unknown Object (File)
Apr 26 2024, 8:51 AM
Unknown Object (File)
Apr 26 2024, 8:46 AM
Unknown Object (File)
Apr 26 2024, 8:46 AM
Unknown Object (File)
Apr 26 2024, 1:39 AM
Unknown Object (File)
Jan 14 2024, 2:14 PM
Unknown Object (File)
Jan 3 2024, 10:56 PM
Unknown Object (File)
Dec 20 2023, 6:18 AM

Details

Reviewers
None
Group Reviewers
rc
Commits
rG3662862f558f: rc: syscons: Add UEFI special case
Summary

Changing cursor, screenmap and setting blanktime doesn't work when booted
with vt(4) and UEFI so add a special case for those depending on machdep.bootmethods.
I have no way to test if this can work with vt(4) and bios boot so just in case
keep calling those for this.

Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Jan 31 2023, 3:17 PM
libexec/rc/rc.d/syscons
71

Some VMs have a boot method that's neither bios nor uefi (but sometimes has uefi constraints, sometimes not). Not sure what the right path forward here is though. I'd default to assuming UEFI unless we know it's not.

Also, machdep.bootmethod is x86 only... i'm thinking that aarch64, at last, might be popular enough that this might better...

Assume we're running on UEFI and use sysctl -q for arches without machdep.bootmethod

manu marked an inline comment as done.Feb 1 2023, 9:12 AM
manu added inline comments.
libexec/rc/rc.d/syscons
71

Indeed, should be good now.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 8 2023, 7:54 AM
This revision was automatically updated to reflect the committed changes.
manu marked an inline comment as done.