Debian preseed.cfg – 语言未设置

我试图写一个preseed.cfg应该用于Debian wheezy的全自动安装。 由于某些原因,安装程序仍然要求select一个lanugage,即使我在我的preseed.cfg中设置。

我从官方Debian页面获得了这些选项: https : //www.debian.org/releases/wheezy/example-preseed.txt

# Preseeding only locale sets language, country and locale. di debian-installer/language string en di debian-installer/country string DE di debian-installer/locale string en_US.UTF-8 # Optionally specify additional locales to be generated. di localechooser/supported-locales multiselect de_DE.UTF-8 

设置本地化值只有在使用initrd预置时才能使用。 使用所有其他方法,只有在询问这些问题之后,才会装载预先设定的文件。

为了得到这个工作有两个select:

  1. 将本地化设置为内核参数
  2. 使用preseeding.cfg构build一个自定义的netinstall iso

您的安装程序是否要求键盘语言?

我们在预定的文件中使用了以下与语言相关的定义,并且(标准PXEbooted)安装程序不会询问我们有关语言的任何内容。

 # Locale, country and keyboard settings di debian-installer/locale string en_US di console-setup/ask_detect boolean false di console-setup/modelcode string pc105 di console-setup/variant USA di console-setup/layout USA di console-setup/layoutcode string us # for Debian 7 and later di keymap select us 

据我所见,您的预设设置是正确的。

你是否在启动参数中设置了priority = critical ? 这将防止安装者提出任何问题,除了关键的问题。

你也尝试在启动参数中设置console-setup / layoutcode = us ? 我记得那会摆脱关于键盘映射的最后一个问题,这可能有助于你的情况。

在Ubuntu安装设备(CD或USB磁盘)上引导时, syslinux引导加载程序在显示引导菜单(最终将运行预先select的文件)之前首先询问语言。

为了自动select一种语言,你应该

  1. 通过删除其他语言,在syslinux/langlist文件中设置所选语言。
  2. syslinux/syslinux.cfg文件中设置非零超时 ,以十进制表示。

如果使用build-simple-cdd,那么跳过语言和键盘问题的参数是:

build-simple-cdd --keyboard us --locale en_US.UTF-8

其原因是压制后设置这些,就像@丹尼鹤说。

在Ubuntu Server 14.04中,我通过在isolinux目录中创build了一个名为“lang”的文件,用一行“en”(用于select英文)来超越语言select列表。