有没有自动为 OpenBSD 自动安装创建 install.conf 的方法?
is there an automatic way to create an install.conf for OpenBSD autoinstall?
OpenBSD 安装程序提示用户是 (I)install (U)pdate (A)utoinstall 还是 (S)hell。如果选择 AutoInstall,则系统会提示用户输入 install.conf 文件所在的 URL。因为我要部署类似机器(物理和虚拟)的集群,所以我想从控制台捕获我的安装选择,然后使用这些结果来部署所有 +1 实例。我试过 expect
但它捕获了所有内容并创建了与示例不相似的巨大文件。我原以为安装程序会为 +1 创建该文件并创建安装记录。
来自本页的“创建安装 response/answer 文件”部分:https://www.codemadness.org/openbsd-autoinstall.html:
The installer supports loading responses to the installation/upgrade questions from a simple text file. We can do a regular installation and copy the answers from the saved file to make an automated version of it.
Do a test installation, at the end of the installation or upgrade when asked the question:
Exit to (S)hell, (H)alt or (R)eboot?
Type S to go to the shell. Find the response file for an installation and copy it to some USB stick or write down the response answers:
cp /tmp/i/install.resp /mnt/usbstick/
OpenBSD 安装程序提示用户是 (I)install (U)pdate (A)utoinstall 还是 (S)hell。如果选择 AutoInstall,则系统会提示用户输入 install.conf 文件所在的 URL。因为我要部署类似机器(物理和虚拟)的集群,所以我想从控制台捕获我的安装选择,然后使用这些结果来部署所有 +1 实例。我试过 expect
但它捕获了所有内容并创建了与示例不相似的巨大文件。我原以为安装程序会为 +1 创建该文件并创建安装记录。
来自本页的“创建安装 response/answer 文件”部分:https://www.codemadness.org/openbsd-autoinstall.html:
The installer supports loading responses to the installation/upgrade questions from a simple text file. We can do a regular installation and copy the answers from the saved file to make an automated version of it.
Do a test installation, at the end of the installation or upgrade when asked the question:
Exit to (S)hell, (H)alt or (R)eboot?
Type S to go to the shell. Find the response file for an installation and copy it to some USB stick or write down the response answers:
cp /tmp/i/install.resp /mnt/usbstick/