]> 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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 23 Jun 2025 15:48:38 +0000 (00:48 +0900)
commitb53c3af3fe968fc2fc7631c9dab6737b08f0156a
treeeb924433418206cdad9df7f4cd2bf98861ff3237
parent0dc39dffbd4525e79d7a1537b5c95780ba4f9727
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
src/boot/console.c