Hi!
I don't know if it's a nice way, but seems works with many keyboard layout.
Patch made against revision 339 from bzr repository.
I removed xserver-xorg/autodetect_keyboard because this can works only when
d-i is installed.
I changed
LANG=$(grep "^${locale}" /root/usr/share/i18n/SUPPORTED | grep UTF-8 |
sed -e 's, .*,,' -e q)
because with a generated locale "fr_FR.UTF-8" from boot parameter "locale=fr",
this give me "fr_BE.UTF-8".
Btw discover/xresprobe/mdetect package must be include with all X based
make-live flavour, xserver-xorg's debconf used these soft.
=== modified file 'scripts/casper-bottom/20xconfig'
--- scripts/casper-bottom/20xconfig 2006-10-05 14:26:23 +0000
+++ scripts/casper-bottom/20xconfig 2006-11-04 11:34:07 +0000
@@ -42,12 +42,9 @@
mount -n -o bind /sys /root/sys
mount -n -o bind /proc /root/proc
-chroot /root debconf-communicate -fnoninteractive casper > /dev/null <<EOF
-set xserver-xorg/autodetect_keyboard true
-fset xserver-xorg/autodetect_keyboard seen true
-EOF
+echo "set xserver-xorg/config/inputdevice/keyboard/layout ${locale}" | chroot /root debconf-communicate -fnoninteractive
+DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 LANG=`cat /root/etc/locale.gen | cut -f1 -d' '` casper-reconfigure /root xserver-xorg
-DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 LANG=$(grep "^${locale}" /root/usr/share/i18n/SUPPORTED | grep UTF-8 | sed -e 's, .*,,' -e q) casper-reconfigure /root xserver-xorg
umount /root/sys
umount /root/proc
_______________________________________________
Debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel