1

I'm trying to automatically install debian using a preseed file. However, there is one piece of information, that should be entered manually, which is the hostname.

To ensure that the hostname can be entered without problems, the correct keyboard layout should be loaded by the installer.

Setting the keymap in the preseed config with d-i keyboard-configuration/xkb-keymap select de generally works fine. Unfortunately, the preseed file is only loaded after the hostname question. Therefore configuring this in the preseed config has no effect. The keyboard layout somehow needs be set via a kernel cmdline paramter.

Unfortunately, simply using keyboard-configuration/xkb-keymap=de did not work.

Which kernel cmdline paramater can I use to automatically set the keyboard layout, so that it is set correctly during the hostname question (before loading the preseed file)?

Zulakis
  • 4,153
  • 14
  • 48
  • 76
  • You are providing the preseed file through the network, I assume. It looks like debian-installer is loading kernel boot parameters at the same step as loading the preseed file. So no matter what kernel boot parameter you provide, it won't reflect during the hostname prompt, because networking is done before loading pressed parameters. If possible, try to provide the pressed file in another way, eg as a file. In that case, the keyboard configuration will be loaded before the hostname prompt. – dexter May 14 '23 at 14:07
  • @dexter Correct, the preseed file is loaded via network. Could you provide a source for the assumption that loading kernel parameters is postponed until the preseed file has been fetched? – Zulakis May 14 '23 at 18:31
  • _It looks like debian-installer is loading kernel boot parameters at the same step as loading the preseed file_ is **wrong**, now I see. It actually executes the parameters in order, so providing parameters during boot will not have an effect on their order of execution. When fetching a preseed file from the network, the hostname needs to be set before the network is configured, and the next step is setting the keyboard layout,... That is my conclusion from the installation log file, which is not necessarily correct. – dexter May 14 '23 at 23:04

0 Answers0