FS#29022 - [mkinitcpio] support native locale.conf and vconsole.conf and fix utf8 handling

Attached to Project: Arch Linux
Opened by Christian Hesse (eworm) - Tuesday, 20 March 2012, 21:43 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 25 March 2012, 02:28 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Thomas Bächler (brain0)
Dave Reisner (falconindy)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This patch adds support for native /etc/locale.conf and /etc/vconsole.conf. These files are preferred to /etc/rc.conf.

Additionally this fixes a problem with utf8 handling. The expression in keymap install script matched locales ending in '.UTF-8' but NOT '.utf8' (without dash). Systems with locales ending in '.utf8' ended in tty1 being unusable for commands producing any kind of utf8 output.

Patches against consolefont and keymap install scripts are attached.
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 25 March 2012, 02:28 GMT
Reason for closing:  Implemented
Additional comments about closing:  testing/mkinitcpio-0.8.5
Comment by Dave Reisner (falconindy) - Tuesday, 20 March 2012, 23:42 GMT
Please adhere to the style guide next time. There's a few issues with both of these hooks which I've addressed. Please try the attached hooks, and thanks for hunting down the bug with the keymap hook (though utf8 isn't really valid).
Comment by Christian Hesse (eworm) - Wednesday, 21 March 2012, 07:50 GMT
Sorry about the style.

consolefont requires vconsole.conf, not locale.conf. After changing this everything is fine. Updated file is attached. Thanks!

Loading...