Bug 36016 - systemd-vconsole-setup does not read /etc/vconsole.conf when running in VM
Summary: systemd-vconsole-setup does not read /etc/vconsole.conf when running in VM
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium minor
Assignee: Lennart Poettering
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 20:49 UTC by Dennis Wronka
Modified: 2011-04-06 10:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Proposed patch to enable loading of /etc/vconsole.conf when running in VM (461 bytes, patch)
2011-04-05 20:49 UTC, Dennis Wronka
Details | Splinter Review

Description Dennis Wronka 2011-04-05 20:49:26 UTC
Created attachment 45334 [details] [review]
Proposed patch to enable loading of /etc/vconsole.conf when running in VM

I have noticed that when starting the system in a virtual machine (in my case KVM), systemd-vconsole-setup tries to load the default font specified at build time.
Looking through the code I have found that r is set to EXIT_FAILURE, which is 1. As the kernel command line only is checked when not running in a VM this will effectively disable loading /etc/vconsole.conf

Setting r to 0, as in locale-setup.c, fixes the problem. As far as I can see no other problems are introduced by this.
Comment 1 Lennart Poettering 2011-04-06 10:37:25 UTC
Urks, this is actually a different bug: we actually want to ignore the cmdline only in containers, not in all virtualization. Basically detect_virtualization() needed to be replaced by detect_container(). Which I did now in git.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.