Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#16040 - [mkinitcpio] Keymap hook doesn't work with some fonts

Attached to Project: Arch Linux
Opened by Karol Babioch (johnpatcher) - Saturday, 05 September 2009, 20:03 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 08 September 2009, 19:07 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Roman Kyrylych (Romashka)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The keymap hook in the mkinitcpio.conf doesn't work as expected. With this hook enabled the font (as well as some other things) during the boot up should change, but it doesn't work with all fonts. I installed the package "terminus-font" and changed my console font to "ter-v24b" in order to get some bigger characters on my screen. It works just fine in the console, but after adding the keymap hook to the HOOKS array in /etc/mkinitcpio.conf and recreating the images (mkinitcpio -p kernel26) nothing changes, the font during boot-up doesn't change until the rc.conf does get loaded (runlevel 3).

When changing the consolefont to some other available fonts ("Agafari-16") it works as expected.

Additional info:
* package version(s): mkinitcpio 0.5.26-1, terminus-font 4.28-1

Steps to reproduce:
* Change the consolefont to something like Agafari-16
* Add the keymap hook to /etc/mkinitcpio.conf
* Recreate the images "mkinitcpio -p kernel26"
* Reboot and look at the changed font during boot up
* Do the same with terminus-font and see that the font during boot up hasn't changed at all
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Tuesday, 08 September 2009, 19:07 GMT
Reason for closing:  Not a bug
Comment by Roman Kyrylych (Romashka) - Saturday, 05 September 2009, 20:51 GMT
I cannot reproduce this.
I have just set CONSOLEFONT=ter-u24b, added keymap to HOOKS and regenerated the initcpio image.
After reboot the font is set as soon as keymap hook is loaded.
Comment by Karol Babioch (johnpatcher) - Saturday, 05 September 2009, 22:44 GMT
So when actually is the keymap hook loaded? My font isn't changed until runlevel 3, where I can see that the font gets changed (as rc.conf is executed).
Comment by Roman Kyrylych (Romashka) - Sunday, 06 September 2009, 11:37 GMT
Hooks are loaded in the order they are written in HOOKS. It happens inside of initramfs environment, long before init from root fs starts.
Please post your HOOKS, LOCALE, KEYMAP, CONSOLEFONT, CONSOLEMAP
and the output of mkinitcpio -p kernel26 -v (better use nopaste.com for that)
Comment by Karol Babioch (johnpatcher) - Tuesday, 08 September 2009, 15:36 GMT
I have rechecked everything and it still doesn't work, the font doesn't get changed until rc.conf is loaded (which happens by entering Runlevel 5 (with XServer installed)), I attached my rc.conf, mkinitcpio.conf as well as the logfile of the creation.

rc.conf: http://nopaste.info/cfa43a8c46.html
mkinitcpio.conf: http://nopaste.info/d3fc5458f9.html
"mkinitcpio -p kernel26 -v": http://nopaste.info/a1a082c3a5.html

According to the log the font file is added to the initcpio, but it doesn't work at all :(.
Comment by Tobias Powalowski (tpowa) - Tuesday, 08 September 2009, 15:40 GMT
Put keymap at the end of your array in mkinitcpio.conf then it should work.
Comment by Karol Babioch (johnpatcher) - Tuesday, 08 September 2009, 17:51 GMT
No, it doesn't work either, nothing has changed :(.
Comment by Tobias Powalowski (tpowa) - Tuesday, 08 September 2009, 17:54 GMT
have you recreated your ramdisk after the change?
Comment by Karol Babioch (johnpatcher) - Tuesday, 08 September 2009, 18:07 GMT
Yes, however there is a change now, the font gets changed earlier now, but nevertheless the first few lines are shown in the "normal" font, but I guess that just the way it works. Is it possible to change the font even earlier?
Comment by Tobias Powalowski (tpowa) - Tuesday, 08 September 2009, 18:11 GMT
you could try after udev hook, earlier is not possible.
Comment by Roman Kyrylych (Romashka) - Tuesday, 08 September 2009, 18:22 GMT
I see you have keymap before base and udev which is not good, I guess
base and udev should always be the first hooks
Comment by Karol Babioch (johnpatcher) - Tuesday, 08 September 2009, 19:04 GMT
No, I've put it to the end, as you said above, afterwards it has worked, but the font is changed from the very beginning, but just a few seconds after the boot process has started. Nevertheless this isn't a bug anymore, I guess it not possible to change the font of the very first output.
Comment by Tobias Powalowski (tpowa) - Tuesday, 08 September 2009, 19:06 GMT
you can only change it after udev has parsed everything, you need the /dev/console without it cannot work.
Since udev does all the module loading you will not see much after this has happened.
Closing this now, we cannot do more here.

Loading...