Comment # 5 on bug 1023211 from
(In reply to Stefan Dirsch from comment #4)
> (In reply to Franck Bui from comment #3)
> > Well it depends on how good your arguments are ;)
> 
> I seriously doubt this. I thought about workarounding the issue, but failed
> miserably.
> 
>  . $vconsole_conf_file
>  if [ ! -z $KEYMAP ]; then
>    echo "KEYMAP: $KEYMAP"
>    options="$KEYMAP $KEYMAP_TOGGLE"
>    ### Linux console and X11 keymap isn't set, if $KEYMAP option for
>    ### "localectl set-keymap" is the same as specified in 
>    ### vconsole.conf; so # make sure this cannot happen by setting it
>   ### to some bogus value first (bnc#1023211)
>    # sed -i 's/KEYMAP=.*/KEYMAP=replace_me/g' $vconsole_conf_file
>    setkeyboard "$options"
>  fi
> 
> Issue seems to be, that the value of $KEYMAP inside of localed and in
> /etc/vconsole.conf are not in sync, i.e. localed is caching this somehow
> regularly. :-(

The sed command was the key here. I commented it out afterwards. 

The issue was, that localed apparently thought the previous keymap before the
bogus value was still set in vconsole.conf, so it did just nothing, i.e. it
also did not overwrite the bogus value in /etc/vconsole.conf. Oh well. So no
reliable way to set Linux console and X11 keymap originated from the value
in /etc/vconsole.conf.


You are receiving this mail because: