使用 preseed 在 debian wheezy 中设置键盘布局

phi*_*hag 7 debian preseed

我想自动安装 debian。我已将示例预置文件复制到 initrd 中,并验证它包含

d-i keymap select us
Run Code Online (Sandbox Code Playgroud)

在安装系统中,/var/log/syslog包含一行

successfully loaded preseed file from file:///preseed.cfg
Run Code Online (Sandbox Code Playgroud)

但我仍然看到Configure the Keyboard对话框。如何在没有用户交互的情况下让安装选择键盘布局?

phi*_*hag 8

示例预置文件是错误的。您需要设置以下选项:

d-i keyboard-configuration/xkb-keymap select us
Run Code Online (Sandbox Code Playgroud)