summaryrefslogtreecommitdiff
path: root/distrib
AgeCommit message (Collapse)Author
2013-12-05syncTheo de Raadt
2013-12-05improve the question part (second line) of ask_which to actually includeAlexander Hall
the name of what we're asking for, rather than 'Which _one_ ...' Improves things a lot for the autoinstaller. ok rpe@
2013-12-04committing uwe's autoinstall notes, as requested by deraadt;Jason McIntyre
2013-12-04Defer spooling of the install log output mail until we are up andAlexander Hall
running again, with our mail system of choice running. ok deraadt@
2013-12-04Do not suggest changing boot-file to boot the SMP kernel, since the installerMiod Vallat
sets up /bsd as the SMP kernel on SMP systems; jkatz
2013-12-04Eliminate spurious space that breaks parsing of nwids containingKenneth R Westerback
blanks. Same fix was applied by todd@ to /etc/netstart (r1.114) in 2006. Pointed out by Remy via bugs@. Thanks!
2013-12-04the hostname.if for a vlan's parent interface should be mode 640 to avoidStuart Henderson
a warning at first boot ok deraadt
2013-12-04cpp does not work in the base set alone, it needs the comp set installedTheo de Raadt
because it in love with gcc internals. so move cpp to the comp set. spotted by jca
2013-12-03Create a minimalist XFS partition containing the 64-bit boot loader as itsMiod Vallat
only file, and put it in the volume header. This allows IP27 to be able to boot off cdrom via the ``Install System Software'' menu. Tested on Origin 200 (IP27) and Fuel (IP35), verified to still boot on IP32 using boot blocks from the volume header.
2013-12-03syncTheo de Raadt
2013-12-02As the number of interactively triggered (A)utoinstall's should be quiteAlexander Hall
outnumbered by (I)nstall's and (U)pgrade's, reorder the alternatives. "sure" deraadt@
2013-12-01More robuse parsing of the DHCP lease file for autoinstall. This will,Alexander Hall
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@
2013-12-01Allows the autoinstaller to pass a public ssh key for inclusion in theAlexander Hall
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@
2013-11-29Move the comments out of get_responsefile() into a description blockRobert Peichaer
at the top. ok halex@
2013-11-29Disable SRCLIBDIR crunchgen feature on gcc 3 platforms, same as mvme88k does.Kenji Aoyama
suggested and ok miod@
2013-11-29- Rename _bootdev to _ifdev now that we not only supportRobert Peichaer
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@
2013-11-29syncTheo de Raadt
2013-11-28simplify the check if a responsefile line is validRobert Peichaer
idea from and ok halex@
2013-11-28make ask_which bail out on a missing response in the autoinstall caseAlexander Hall
rather than looping endlessly. ok rpe@
2013-11-28- use IFS=<space><tab> to trim the leading/trailing blanks with readRobert Peichaer
- 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@
2013-11-28Add missing files for luna88k.Kenji Aoyama
ok miod@
2013-11-28Now, that the auto installer supports both, install and upgrade,Robert Peichaer
use "non-interactive mode" instead of installation. ok deraadt@
2013-11-27wasteful spaces and tabs snuck in. Actually, it's true -- this is oneTheo de Raadt
place where they do matter...
2013-11-27Remove an outdated comment.Robert Peichaer
ok krw@ halex@
2013-11-27astoundingly, the read loop has been subtly broken in a variety of waysTheo de Raadt
on big-endian machines for quite a while. Some discussion with millert and guenther to repair it.
2013-11-27Put back info to enter the Open Firmware with a standard PC keyboardMartin Pieuchot
from Daniel Dickman that got accidentally reverted. ok deraadt@
2013-11-27syncTheo de Raadt
2013-11-26unsigned char for ctypeTheo de Raadt
2013-11-26syncTheo de Raadt
2013-11-25Allow auto install/upgrade in non-netbooted case.Robert Peichaer
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@
2013-11-25Rework _autorespond()Robert Peichaer
- 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@
2013-11-25improve keyboard boot info; Daniel DickmanTheo de Raadt
2013-11-25Document which keys need to be hold to enter the Open Firmware with aMartin Pieuchot
standard PC keyboard. From Daniel Dickman (didickman at gmail.com).
2013-11-23- use a flag file to recognize a successfull autoinstaller runRobert Peichaer
- 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@
2013-11-21syncTheo de Raadt
2013-11-21syncTheo de Raadt
2013-11-19Add autoinstall configuration to the list of files and output stirringAlexander Hall
the random pool at install. Apart from the configuration in itself, this permits adding various random data in comments or whatever. ok krw@ rpe@
2013-11-19Fetch host specific responsefile, if that does not exist, fall backRobert Peichaer
to generic one. noted by and ok phessler@ ok krw@ and positive feedback deraadt@
2013-11-18Extract the information whether to install or upgrade in unattendedRobert Peichaer
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@
2013-11-18syncTheo de Raadt
2013-11-16Remove AUTOROOT variable which is a leftover of r1.183 of install.subRobert Peichaer
diff from Philipp e1c1bac6253dc54a1e89ddc046585792 at osteo dot net ok krw@ halex@
2013-11-14fix ^C handling which was accidentally trapped a bit to muchAlexander Hall
ok rpe@ krw@
2013-11-14syncTheo de Raadt
2013-11-13syncTheo de Raadt
2013-11-13Ignore empty lines and emtpy answers in install.conf.Robert Peichaer
bug report from philip e1c1bac6253dc54a1e89ddc046585792 at posteo dot net ok halex@
2013-11-13Ensure, that install.conf is non-empty and isRobert Peichaer
refetched on every restart of the autoinstaller. ok halex@ krw@
2013-11-12Make variables inside get_responsefile() local.Robert Peichaer
ok krw@ halex@
2013-11-12Rework get_responsefile()Robert Peichaer
- 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@
2013-11-11syncTheo de Raadt
2013-11-09Abort autoinstaller in case of an invalid answer to a yes/no question.Robert Peichaer
Avoids an endless question/wrong answer loop. with help from and ok halex@ ok krw@