[Rear-users] Keyboard problems using HP iLO and Rear

Dag Wieers dag at wieers.com
Tue Aug 31 12:52:39 CEST 2010


On Tue, 31 Aug 2010, Schlomo Schapiro wrote:

> On 31/08/10 08:53, Dag Wieers wrote:
>> +### Also include the US keyboard mappings as default
>> +COPY_AS_IS=( "$COPY_AS_IS[@]" /lib/kbd/keymaps/i386/qwerty/defkeymap.map.gz )
>> -----
>
> I would be happy to accept such a patch, please take a look at least at x86_64
> and submit something that works for both.

Euhm, this was from a 64bit system. The i386 is just an indication of the 
platform (ibmpc) rather than something architecture dependent. This file 
is architecture-agnostic and works on both 32bit and 64bit.


> A quick check on SUSE showed that /lib/kbd -> /usr/share/kbd so that you might
> want to check for both. My favourite trick is to use bash globbing for that:
>
> COPY_AS_IS=( "$COPY_AS_IS[@]" /lib/kbd/keymaps/*/qwerty/defkeymap.map.gz
> /usr/share/kbd/keymaps/*/qwerty/defkeymap.map.gz)

I do not agree with the above. The question is, where is loadkeys looking 
for it. If SUSE is putting that symlink in place because loadkeys is 
looking for it at that location, then including /usr/share will be a 
problem because you don't include the symlink and it will fail.

So please look at what the tool is doing, rather than what SUSE is 
complying with. Jeroen checked on Arch Linux and there is no symlink, but 
it lives in /usr/share/kbd.

Apparently configure --datadir influences the location. Somehow it would 
be best if we could ask loadkeys where it looks and then include that 
location, together with loadkeys.

 	strings /bin/loadkeys | grep 'kbd/keymaps/\*\*'

Not sure if we want to do that, but it works on RHEL, SUSE and Arch.


> I suggest that you also add some aliases to simplify keymap switching (with
> sufficiently generic chars) to
> Kind Regards,usr/share/rear/skel/default/etc/profile (or append it to the
> profile in the BUILD_DIR).

What I did was add the loadkeys -d command in the bash history. So you 
only have to go up and press enter. Here is that diff:

-----
Index: usr/share/rear/build/GNU/Linux/13_create_dotfiles.sh
===================================================================
--- usr/share/rear/build/GNU/Linux/13_create_dotfiles.sh        (revision 132)
+++ usr/share/rear/build/GNU/Linux/13_create_dotfiles.sh        (working copy)
@@ -23,6 +23,7 @@
  # create a simple bash history file
  cat > .bash_history <<EOF
  : : : : : : WHAT ELSE WOULD YOU HAVE EXPECTED HERE ON A RAMDISK ?
+loadkeys -d
  rear recover
  EOF
  chmod 644 .bash_history
-----

Kind regards,
-- 
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]




More information about the rear-users mailing list