Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: Allow autoinstall response file to select default answer
To:
obsd@mulh.net
Cc:
tech@openbsd.org
Date:
Tue, 06 Oct 2026 09:52:42 -0600

Download raw body.

Thread
> Not so easy!
> How is the installer to know that my answer in the response file for
> "Pathname to the sets" is for the *second* time the question is asked?
> I want the default answer for the first time but give answer the second time.
> 
> My patch allows for this:
> Pathname to the sets =
> Pathname to the sets = path/to/site/files
> 
> The first time the question is asked (installing OpenBSD sets)
> The installer reads the first line, see the blank and just like during an
> interactive installation a blank response to a prompt takes the default.
> 
> The second time the question is asked (installing the site* sets)
> The installer reads the second line, sees an answer and responds with that.
> 
> Without the patch:
> If I want to answer the second "Pathname to the sets" I MUST also answer the first.
> If I want to take the default answer on the first, I must take the default on all.
> 
> Yes you can answer the first and take default on the second but you don't want
> to be installing the site*.tgz files before installing the OpenBSD sets.

Your diff is too magical.