[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SuSE 10.2 and LOADNATIONALKEYB=1
Peter_22@xxxxxx wrote:
> It´s me once again with this openSuSE keymap problem. When I prepared
> CD-ROMs with loop-aes under openSuSE 10.2 I was no longer able to mount
> them under Knoppix.
Do you mean unable to knoppix mount loop-AES encrypted partitions using key
file created under openSuSE?
Boot CD-ROM mounts normally? Right?
> It seems likely that these images will not be mountable in future releases
> of SuSE, which worries me a lot.
All parties involved, openSuSE X/console, knoppix, and key map in /boot
partition or boot-to-encrypted-root CD-ROM, must agree on how passphrase
characters are encoded. Otherwise it is not going to work.
What happens if you apply included build-initrd.sh patch, set UTF8KEYBMODE=1
in config, and create new boot CD using that new build-initrd.sh script?
> The attachment provides 2 keymaps made from X-Window and the console.
> dumpkeys >x-window.kmap // in KDE
> dumpkeys >console.kmap // from the ctrl+alt+F1 console
> They are different in size and contents. What can I do to prevent
> incompatibility with future/different versions of Linux? Am I the only one
> with this concern?
I see exactly same dumpkeys output from both X and console, even though
console keyboard seems to be in ASCII mode and X keyboard in scancode mode.
--
Jari Ruusu 1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9 DB 1D EB E3 24 0E A9 DD
--- ../loop-AES-v3.1e/build-initrd.sh 2006-09-23 16:42:59.000000000 +0300
+++ ./build-initrd.sh 2007-01-31 21:04:15.000000000 +0200
@@ -2,9 +2,9 @@
#
# build-initrd.sh
#
-# Written by Jari Ruusu, September 23 2006
+# Written by Jari Ruusu, January 31 2007
#
-# Copyright 2001-2006 by Jari Ruusu.
+# Copyright 2001-2007 by Jari Ruusu.
# Redistribution of this file is permitted under the GNU Public License.
#
# Changes by Hauke Johannknecht <ash@xxxxxx> 11/2001
@@ -156,6 +156,9 @@
# Example: LOOPMODPARAMS="max_loop=8 lo_prealloc=125,5,200"
LOOPMODPARAMS=""
+# 1 = set keyboard to UTF-8 mode, 0 = don't set
+UTF8KEYBMODE=0
+
# 1 = load national keyboard layout, 0 = don't load
# You _must_ manually copy correct keyboard layout to /boot/default.kmap
# which must be in uncompressed form. (can not be .gz file)
@@ -427,9 +430,18 @@
goto fail4;
}
+#if ${UTF8KEYBMODE}
+ buf[0] = 0;
+ strCat(buf, "/lib/kbd_mode -u");
+ exeWait(buf);
+#endif
#if ${LOADNATIONALKEYB}
buf[0] = 0;
- strCat(buf, "/lib/loadkeys /lib/default.kmap");
+ strCat(buf, "/lib/loadkeys");
+#if ${UTF8KEYBMODE}
+ strCat(buf, " -u");
+#endif
+ strCat(buf, " /lib/default.kmap");
exeWait(buf);
#endif
@@ -750,6 +762,9 @@
z="${z} /sbin/insmod.old"
fi
fi
+if [ ${UTF8KEYBMODE} == 1 ] ; then
+ z="${z} "`which kbd_mode`
+fi
if [ ${LOADNATIONALKEYB} == 1 ] ; then
z="${z} "`which loadkeys`
fi
-
Linux-crypto: cryptography in and on the Linux system
Archive: http://mail.nl.linux.org/linux-crypto/