Bug 36016

Summary: systemd-vconsole-setup does not read /etc/vconsole.conf when running in VM
Product: systemd Reporter: Dennis Wronka <dennis.wronka>
Component: generalAssignee: Lennart Poettering <lennart>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Proposed patch to enable loading of /etc/vconsole.conf when running in VM

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.