]> git.ipfire.org Git - thirdparty/systemd.git/commit
console: when switching console modes and one doesn't work, always go for the next
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Jun 2025 09:05:00 +0000 (11:05 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 25 Jun 2025 12:36:10 +0000 (13:36 +0100)
commit66235376a48d2d94bba6c5db0b9f5448243c2041
treee5c6b9996d2344a5317d82822a868c3cde981494
parent0df1bed19b651e5c593eecce7ebd748c2ded3fe4
console: when switching console modes and one doesn't work, always go for the next

So far we already had a logic in place to go for the next mode if some
mode doesn't work – but it was only applied if we'd actively cycle
through resolutions.

Let's extend the logic and always apply it: whenever we try to switch to
a mode, and it doesn't work, go to the next one until we find one that
works.

Fixes: #37324
(cherry picked from commit b53c3af3fe968fc2fc7631c9dab6737b08f0156a)
src/boot/console.c