loader: os console in options menu should use first name from list
The current os_console setup in options menu is assuming single value set in console variable. Since all usable device names for kernel have 4 chars, we can only compare first 4 chars, and ignore the rest. This does also follow the kernel logic to use first name from console variable (in case the os_console is not set).
Note the console variable setter function does validate the console names, so we always do have correct name(s) in console variable.
Testing done: verify the correct os_console value is set in options menu and on boot. With console="ttya,text", we should have os_console set to ttya. Note, full fix is provided with 14585.
Updated by Electric Monk 3 months ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 08ae0f1eeaa2952f05e6cc3e67da55db918f8e4a Author: Toomas Soome <email@example.com> Date: 2022-05-16T21:30:37.000Z 14609 loader: os console in options menu should use first name from list Reviewed by: Andrew Stormont <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>