Julien Cristau <jcristau@debian.org> (12/02/2010): > It looks like the bug here is simply that > console-setup/debian/console-setup-udeb.base-installer was not > updated when /etc/default/keyboard was split out from > /etc/default/console-setup so the keyboard layout doesn't get copied > to the installed system anymore. I think that's the other way around. I've seen r61274 which led to shipping two files and it looks like copying both in console-setup-udeb.base-installer could help, and it seems so: Previous situation (my very first published d-i image, with c-s enabled): - one selects the keyboard at the very beginning. I picked say “Français – Autre” (fr/oss) - the installation goes on. - one gets asked about the keyboard model. Default item was “PC105 (Intl)” for me. - one gets asked about the layout again. fr/oss again. - after a few seconds, one gets asked about the layout again again. fr/oss it is, again. Now, once we copy the console-setup file along the keyboard file (i.e. once we apply the attached patch): - one selects the keyboard at the very beginning. - the installation goes on. - one gets asked about the layout again. So there's some kind of improvement already, at least. I'm going to have a look at preseeding in console-setup now. As for using setxkbmap, I've patched keyboard-configuration.postinst so that it calls: setxkbmap "$layout" "$variant" $options when $DISPLAY is set, when setxkbmap is available, and when keyboard_present. (I picked it up from my very first image, some adjustments may be needed, I didn't play around with options and so on.) Mraw, KiBi.
Try to copy console-setup as well as keyboard, from /etc/default.
--- a/packages/console-setup/debian/console-setup-udeb.base-installer
+++ b/packages/console-setup/debian/console-setup-udeb.base-installer
@@ -15,6 +15,7 @@ set -e
if keyboard_present; then
mkdir -p /target/etc/default
+ cp -a /etc/default/console-setup /target/etc/default/
cp -a /etc/default/keyboard /target/etc/default/
apt-install keyboard-configuration || true
apt-install console-setup || true
Attachment:
signature.asc
Description: Digital signature