7

I want to install debian automatically. I've copied the example preseed file into the initrd, and verified that it contains

d-i keymap select us

In the installation system, /var/log/syslog contains a line

successfully loaded preseed file from file:///preseed.cfg

but I still see the Configure the Keyboard dialog. How can I make the installation pick a keyboard layout without user interaction?

3 Answers 3

8

The example preseed file is wrong. You need to set the following option:

d-i keyboard-configuration/xkb-keymap select us
0
2

This was my configuration for Ubuntu xenial; what a pain. I found this here, so thanks to this GitHub user

# Keyboard selection.
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select us
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/variantcode string
0

I had the same issue as you had. I had everything but the keyboard preseeded so that it would not prompt for anything during the installation. Your problem is that you actually need to add in the keyboard configuration into the append line in your menus file (may be named main depending on what you are doing). Also your keymap setting is correct. In debian keymap is an alias for keyboard-configuration/xkb-keymap.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.