vconsole-setup: don't fail if the only found vc is already used by plymouth
authorFranck Bui <fbui@suse.com>
Thu, 1 Feb 2024 08:13:10 +0000 (09:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2024 08:25:14 +0000 (09:25 +0100)
commit190ff0d0a8d1fc367ec04296f24cd1cab5b7543b
tree8d8909d41465534dc221b75939d24b3d7b340792
parent78bbc7d5d40506bc0b8e90c35ab89b02a904d13a
vconsole-setup: don't fail if the only found vc is already used by plymouth

During the boot process, systemd-vconsole-setup can be started when the only
allocated VC is already taken by plymouth.

This case is expected when a boot splash is displayed hence
systemd-vconsole-setup.service should not fail if it happens.

However rather than doing nothing, the sysfs utf8 flag is set before exiting
early.
src/vconsole/vconsole-setup.c