void-packages/srcpkgs/mkinitcpio/patches/use-rc-conf.patch

39 lines
1.3 KiB
Diff

From: Christian Poulwey <christian.poulwey@t-online.de>
Date: Fri Dec 28 12:31:28 2018 +0100
Subject: Use the correct config file for keymap and font
By default, mkinitcpio tries to source the file
/etc/vconsole.conf, which is the configuration
file in which keymap and consolefont are defined
on SystemD-based systems.
As void is based on runit, those settings are
defined in /etc/rc.conf and the mkinitcpio
package should source this file.
diff --git a/install/consolefont b/install/consolefont
index c10b65d..dad38e2 100644
--- a/install/consolefont
+++ b/install/consolefont
@@ -9,7 +9,7 @@
# subshell to avoid namespace pollution
(
# shellcheck disable=SC1091
- [[ -s /etc/vconsole.conf ]] && . /etc/vconsole.conf
+ [[ -s /etc/rc.conf ]] && . /etc/rc.conf
if [[ -n "$FONT" ]]; then
for file in "/usr/share/kbd/consolefonts/$FONT".@(fnt|psf?(u))?(.gz|.zst); do
diff --git a/install/keymap b/install/keymap
index 7de6acb..beb4f7f 100644
--- a/install/keymap
+++ b/install/keymap
@@ -12,7 +12,7 @@ build() {
l="$LANG"
unset LANG
- for cfg in /etc/{vconsole,locale}.conf; do
+ for cfg in /etc/{rc,locale}.conf; do
# shellcheck disable=SC1090
[[ -s "$cfg" ]] && . "$cfg"
done