使用预播自动执行Linux安装

问题描述 投票:1回答:1

为了自动安装基于Debian的Linux系统,我将打包程序与“ boot_command”一起使用。即使问题不是关于打包程序的问题,我也想提供一个上下文。

[貌似,某些参数必须在“ boot_command”(如果不使用打包程序的情况下为syslinux或命令行)中给出,并且这些参数不能置于“ preseed”文件中。

选择语言环境的示例(工作):

boot_command:

/install/vmlinuz initrd=/install/initrd.gz locale=en_US preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg --

preseed.cfg:

选择语言环境的示例(不起作用):

boot_command:

/install/vmlinuz initrd=/install/initrd.gz preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg --

preseed.cfg:

d-i debian-installer/locale string en_US

问题是我怎么只能使用“预置”文件。

linux ubuntu debian packer
1个回答
1
投票

尝试将auto=true参数添加到/ install / vmlinuz。这对我有用,似乎延迟了在安装程序中提出问题,直到稍后,即之前的内容加载时。有关此的更多信息:https://www.debian.org/releases/stable/amd64/apbs02.en.html#preseed-auto

© www.soinside.com 2019 - 2024. All rights reserved.