Comment # 21 on bug 904533 from
@Thomas:

I don't think there is problem with different files as this is handled by
configuration files. The 10i18n/README gives a detailed description on how to
set this up and we do this in /etc/dracut.conf.d/01-dist.conf with:

i18n_vars="/etc/sysconfig/language:RC_LANG-LANG,RC_LC_ALL-LC_ALL
/etc/sysconfig/console:CONSOLE_UNICODEMAP-FONT_UNIMAP,CONSOLE_FONT-FONT,CONSOLE_SCREENMAP-FONT_MAP
/etc/sysconfig/keyboard:KEYTABLE-KEYMAP"

There we specify which variables in which configfiles shall be mapped to which
general variables.


(In reply to Andrei Borzenkov from comment #14)
> OK, dracut expects consoletrans files to have suffix .trans, and "trivial"
> does not have any suffix.
> 
>         if [[ ${FONT_MAP} ]]
>         then
>             FONT_MAP=${FONT_MAP%.trans}
>             inst_simple ${kbddir}/consoletrans/${FONT_MAP}.trans
>         fi
> 
> At this point I do not know whether dracut needs to include fixed list of
> maps without extension or simply try file without extension if extension
> does not exist.

I wrote a fix for this and went for the simple solution - if the file with
extension doesn't exist check it without extension.
https://github.com/juwolf/dracut/commit/a1171097cd53a5d875f42d2965975bc71bf2d3cd
Pull request created.


You are receiving this mail because: