FS#44805 - [mkinitcpio] keymap hook: Don't warn if no KEYMAP not found in configuration, it defaults to "us"
Attached to Project:
Arch Linux
Opened by Alain Kalker (ackalker) - Friday, 01 May 2015, 17:45 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 03 July 2016, 18:23 GMT
Opened by Alain Kalker (ackalker) - Friday, 01 May 2015, 17:45 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 03 July 2016, 18:23 GMT
|
Details
Description:
From `man vconsole.conf`: KEYMAP= defaults to "us" if not set. I think it is reasonable for users to include the keymap hook in HOOKS without having an /etc/vconsole.conf (or one that doesn't specify KEYMAP) if all they want is the "us" keymap (maybe it includes more than the default kernel keymap, I don't know). I would suggest initializing: KEYMAP=us before the loop reading the .conf files Additional info: * package version(s) mkinitcpio 18-2 * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Dave Reisner (falconindy)
Sunday, 03 July 2016, 18:23 GMT
Reason for closing: Fixed
Additional comments about closing: mkinitcpio-20-1
Sunday, 03 July 2016, 18:23 GMT
Reason for closing: Fixed
Additional comments about closing: mkinitcpio-20-1
CHANGES WITH 194:
* If /etc/vconsole.conf is non-existent or empty we will no
longer load any console font or key map at boot by
default. Instead the kernel defaults will be left
intact. This is definitely the right thing to do, as no
configuration should mean no configuration, and hard-coding
font names that are different on all archs is probably a bad
idea. Also, the kernel default key map and font should be
good enough for most cases anyway, and mostly identical to
the userspace fonts/key maps we previously overloaded them
with. If distributions want to continue to default to a
non-kernel font or key map they should ship a default
/etc/vconsole.conf with the appropriate contents.
This begs the question: what exactly
Should we stick to what the man page says and assume: no KEYMAP in /etc/vconsole.conf means use the default KEYMAP=us, or should we rely on what NEWS says and assume: no /etc/vconsole.conf means do nothing?
What is meant by 'defaults to "us"' in this case anyway? Default only if /etc/vconsole.conf exists?
alt keycode 103 = KeyboardSignal
This sets the key combo Alt-UpArrow to perform 'kbrequest', which in turn can be used to start an emergency or rescue shell of some kind.
It appears that both the keymap hook and systemd rely on behaviour which is not documented in the man page (only in the NEWS file), namely that if /etc/vconsole.conf doesn't exist, the keymap will not be touched. and the default value for KEYMAP doesn't apply in that case.
If you feel that this is a problem with systemd's man page, then maybe I will report it as a bug upstream.
https://git.archlinux.org/mkinitcpio.git/commit/?id=89bf8b56137196907b25e9d131e82dec90edaff0