Age | Commit message (Collapse) | Author |
|
the trailing question mark, such as in "hostname = foo"
noted by, discussed with, and ok rpe@
|
|
ok rpe@
|
|
anything not being a whitespace is considered part of a word.
deraadt@ likes it, rpe@ has approved of the idea
|
|
more intuitive order: Show the 'After rebooting, run sysmerge' hint below
the line that explains how to reboot, instead of several lines above.
Suggested by a new user doing the first upgrade.
input/ok halex@ rpe@
|
|
once it's been used, and allow the same question to be answered
multiple times. This way, responses to ask_which() questions no
longer need the special magic we had for them being on a single line.
idea from deraadt@
ok rpe@
|
|
ok deraadt@
|
|
the name of what we're asking for, rather than 'Which _one_ ...'
Improves things a lot for the autoinstaller.
ok rpe@
|
|
running again, with our mail system of choice running.
ok deraadt@
|
|
blanks.
Same fix was applied by todd@ to /etc/netstart (r1.114) in 2006.
Pointed out by Remy via bugs@. Thanks!
|
|
a warning at first boot ok deraadt
|
|
outnumbered by (I)nstall's and (U)pgrade's, reorder the alternatives.
"sure" deraadt@
|
|
for example, bail out instead of producing annoying output if the
filename statement does not match auto_(install|upgrade).
Brought up again by Patrik Lundin, thanks!
ok rpe@
|
|
user's .ssh/authorized_keys. Deliberately not in interactive mode since
I am not sure it's worth adding another question that only quite few
people would enjoy.
ok rpe@
|
|
at the top.
ok halex@
|
|
the interface we netbooted from for initial dhcp reqest.
- Change the error message in case no response file was
found to match the info message at the beginning.
ok krw@
|
|
idea from and ok halex@
|
|
rather than looping endlessly.
ok rpe@
|
|
- simplify the key/value splitting with a true halexism
- recognize a line without a '=' by counting the chars in _key/_val
instead of doing a string comparison which needs a temporary _k var
- localize _l
ok krw@ halex@
|
|
use "non-interactive mode" instead of installation.
ok deraadt@
|
|
place where they do matter...
|
|
ok krw@ halex@
|
|
Add some logic to get_responsefile() to select an interface for the
initial dhcp request which tells what to do (install/upgrade) and
where to fetch the responsefile from.
- if netbooted, use the interface in netboot group, or
- if only one interface exists, use it, or
- if more intefaces exist, ask user which one to use
Tweak ask_which() to be usable if $auto is true, but
$RESPSONSEFILE not yet set.
ok halex@ deraadt@
|
|
- strip leading/trailing blanks from question
- strip leading blanks from answer
- compare questions case insensitive
- ignore empty and comment lines and lines without =
- treat empty/missing/multiple answers as error and exit
- ensure, that $RESPONSEFILE is actually an existing file.
- unset IFS to preserve leading/trailing blanks on read.
- use read -r, because we don't support line continuation in answers.
- simplify the "_i=0 but we have a default answer" case a bit.
lots of feedback from halex@
ok deraadt@ krw@
|
|
- use a shorter constant logfile name
- quote From lines and remove ^M in ftp output from logfile
- provide the autoinstaller logfile as mail to root
with help and positive feedback halex@ krw@ deraadt@
ok halex@
|
|
the random pool at install. Apart from the configuration in itself, this
permits adding various random data in comments or whatever.
ok krw@ rpe@
|
|
to generic one.
noted by and ok phessler@
ok krw@ and positive feedback deraadt@
|
|
mode from DHCP attribute "filename", which has to be "auto_install"
or "auto_upgrade". For archs that use this attribute for the boot
program create a symbolic link to auto_install and/or auto_install.
Change the naming scheme for response files on the http server to
<mac-addres>-<install|upgrade>.conf where <mac-address> is the
lladdr of the netboot interface of to be installed/upgraded hosts,
e.g. 52:54:00:12:34:56-install.conf. This allows different response
files for multiple hosts.
ok krw@ deraadt@
|
|
diff from Philipp e1c1bac6253dc54a1e89ddc046585792 at osteo dot net
ok krw@ halex@
|
|
ok rpe@ krw@
|
|
bug report from philip
e1c1bac6253dc54a1e89ddc046585792 at posteo dot net
ok halex@
|
|
refetched on every restart of the autoinstaller.
ok halex@ krw@
|
|
ok krw@ halex@
|
|
- Take netboot interface down and so kill a dhclient from a previous
attempt and to free up the only bpf which exists in this installstage.
Without this, we're not able to "restart" autoinstall because dhclient
fails due to lack of bpf's. dhclient takes the interface up again.
- Remove -s leasefile check, it's implicitly done with -n SERVER check.
- Avoid possible sed error msgs by redirecting STDERR to /dev/null.
- Fetch install.conf in a ftp on-liner whithout unneccessary URL var.
- Shorten -s install.conf check,
- [] -> [[]] for consistency
ok krw@
|
|
Avoids an endless question/wrong answer loop.
with help from and ok halex@
ok krw@
|
|
ok krw@ halex@
|
|
ok krw@ halex@
|
|
which the system netbooted from.
"cool" uwe@ on a similar diff
ok krw@ halex@
|
|
With this, the installer finishes even when there are kernel messages
output during the installation. :)
original diff and ok halex@
|
|
it's probably is a pre-encrypted password hash.
This means that the autoinstall configuration (and interactive password
too) does not have to specify a cleartext password.
reworked diff originating from krw@
no objections, specifically so from krw@
|
|
For a completely unattended installation bsd.rd has to be netbooted,
a DHCP server must be running and provide "next-server", which will be
used to fetch "http://<next-server>/install.conf". The format of the
response file is a list of "<key> = <value>" pairs where <key> is a
substring of the interactive question (case-insensitive) and <value> is
what would be entered interactively.
Minimal response file example:
system hostname = openbsd
password for root account = <...>
network interfaces = re0
IPv4 address for re0 = dhcp
server? = <...>
This is a starting point, it still a bit rough.
ok krw@, many improvements by halex@
|
|
the library name matches the name of its src directory. Also, include -lc
here so that the crunchgen knows to build a distrib libc.a for these
|
|
to 64 bit time_t
prodded by deraadt@
|
|
and something else is in the work.
ok halex@ sthen@ deraadt@ kettenis@ phessler@
|
|
"do it NOW" deraadt@
|
|
- simplify search for an existing ipv6 def. route
- ensure, that $_routers holds a sorted and unique list
- show 'list #' in prompt only if there's a list to select from
- zap IFS/_oifs dance and simplify select loop
- set ipv6 def. route in v6_defroute() instead of in v6_config()
thanks naddy@ and todd@ for their feedback
ok sthen@, krw@ on a similar diff
with help from and ok halex@
|
|
unsupported disk as argument (e.g. wd*)
|
|
underlying device nodes exists. Also clean up makedev and allow it to
pass multiple arguments to MAKEDEV.
ok krw@ rpe@
|
|
ok rpe@
|
|
ok halex@ krw@
|
|
ok halex@ krw@
|