FS#51853 - [mkinitcpio] sd-vconsole hook limited to .inc files.

Attached to Project: Arch Linux
Opened by Theodor van Nahl (tvn87) - Wednesday, 16 November 2016, 18:56 GMT
Last edited by Toolybird (Toolybird) - Saturday, 05 August 2023, 21:53 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The sd-vconsole hook is not installing keyboard layouts configured in */etc/vconsole.conf* unless their korresponding kbd files are named with ".inc" instead of ".map".

The corrensponding line of code in the hook can be found in +33 */usr/lib/initcpio/install/sd-vconsole*:

> done < <(find /usr/share/kbd/keymaps/ -type f -regex ".*/$1\(\.inc\)?\(\.gz\|\.bz2\)?")

And as far as I understand that find command needs to work for every possible entry of ``localectl list-keymaps`` which it currently does not. Further more the filename seems to be required to end with either *.map*, *.map.gz* according to the localectl source code: https://github.com/systemd/systemd/blob/master/src/locale/localectl.c#L275-L308.

Hope I did not mix something up or interpreted it wrong.

Additional info:
* mkinitcpio 21-1
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 05 August 2023, 21:53 GMT
Reason for closing:  Not a bug
Comment by nl6720 (nl6720) - Saturday, 05 August 2023, 10:10 GMT
The (\.inc\)? group is optional and $1 is "${KEYMAP}.map", so there's no issue.

This works just fine:

find /usr/share/kbd/keymaps/ -type f -regex ".*/us.map\(\.inc\)?\(\.gz\|\.bz2\)?"

Loading...