OpenBSD开始测试无人值守安装

在OpenBSD环境下搭建各种服务器的相关讨论。

版主: lionuxchenjun天地乾坤

回复
头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

OpenBSD开始测试无人值守安装

帖子 acheng » 2014-01-10 23:54

在undeadly.org看到的。下面引用install.amd64中的内容。
其中并没有发现关于磁盘的选择以及分区如何在应答文件中设置。
Preparing an unattended installation of OpenBSD:
------------------------------------------------

If the installation system detects that it booted from the network,
and isn't interrupted within 5 seconds, it attempts a fully-automatic
installation. In this mode the installer runs dhclient(8) on the
network interface the system booted from, and upon success retrieves
a response file via HTTP. The "next-server" DHCP option specifies the
hostname part of the URL, as in "http://<next-server>/install.conf".

You can also retrieve the response file from another source, a local
disk for example. If you wish to do that, enter the shell, retrieve
the response file, store it as /install.conf, and start the automatic
installation by leaving the shell and entering 'A' for "(A)utoinstall"
at the prompt.

The response file format is very simple. It contains key/value pairs
separated by an equals sign '=', where the key is a substring of the
question or the plural of a thing in multiple-choice questions, and
the value is what would have been entered at the interactive prompt.
Empty lines, and lines beginning with a '#' character are ignored.

Here is a minimal response file:

system hostname = openbsd
# generated with: encrypt -- secret
password for root = $2a$06$4Q.5e2eIJYyMn2J/HTR6N.gJ4tpBsSXgYrhVnxlomfhVGHOcnu3KW
location of sets = http

(Passwords should always be encrypted using encrypt(1), although the
installer also accepts cleartext passwords.)

The "system hostname" key above matches the following full question
asked during an interactive installation:

System hostname? (short form, e.g. 'foo')

Take "network interfaces" for an example of a multiple-choice question,
which could be asked during an interactive installation:

Available network interfaces: re0 re1
Which one do you wish to configure? [re0]

In a response file, this multiple-choice question is identified by
only the ``thing'' which is available: "network interfaces" in this
case. To configure these two interfaces the response file might
contain:

network interfaces = re0 re1
IPv4 address for re0 = dhcp
IPv4 address for re1 = dhcp

While the installation is in progress the installer will redirect all
output to the file /install.log, which can also be found on the freshly
installed system after the initial reboot. If the installation is
successful the system will reboot automatically; otherwise, you will
be dropped back into the shell where you can look at the /install.log
file or try again.

f5b
锆 Zr
帖子: 643
注册时间: 2011-10-22 20:43

Re: OpenBSD开始测试无人值守安装

帖子 f5b » 2014-01-12 19:50

这个功能不错

因该还在改进当中,文档还没有写完整吧
可能要看源代码才能完整理解里面的参数

头像
acheng
锌 Zn
帖子: 581
注册时间: 2011-07-07 21:52

Re: OpenBSD开始测试无人值守安装

帖子 acheng » 2015-02-24 21:29

bsdnow.tv上有一篇介绍文章了 。。。
http://www.bsdnow.tv/tutorials/autoinstall

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 1 访客