summaryrefslogtreecommitdiff
path: root/distrib
AgeCommit message (Collapse)Author
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@
2013-11-09Disable SRCLIBDIR crunchgen feature on gcc 3 platforms; gcc 3 collect2 doesMiod Vallat
not behave the way crunchgen expects it to. Will hopefully get fixed soon. Discussed with guenther@
2013-11-09Abort automatic installation if no sets are found in install_files().Robert Peichaer
ok krw@ halex@
2013-11-09Replace handrolled tolower() function with ksh equivalent.Robert Peichaer
ok krw@ halex@
2013-11-08Use get_ifdevs() to get the interface nameRobert Peichaer
which the system netbooted from. "cool" uwe@ on a similar diff ok krw@ halex@
2013-11-07syncMiod Vallat
2013-11-07syncTheo de Raadt
2013-11-05avoid touching the signal traps during autoinstallUwe Stuehler
With this, the installer finishes even when there are kernel messages output during the installation. :) original diff and ok halex@
2013-11-04syncTheo de Raadt
2013-11-04syncTheo de Raadt
2013-11-04syncTheo de Raadt
2013-11-04oops, meant MACHINE_CPU not MACHINE_ARCH (matters for mips64*)Theo de Raadt
2013-11-03syncTheo de Raadt
2013-11-03syncTheo de Raadt
2013-11-02syncTheo de Raadt
2013-11-02syncTheo de Raadt
2013-11-02syncTheo de Raadt
2013-11-01Document the stupid behaviour of older PROM which fail to load binariesMiod Vallat
past 3MB but fail to abort with an error message, and instead spin until ^Ced. This should only affect netbooting bsd.rd; explain lightly how to use the boot loader and load the kernel from NFS.
2013-11-01Provide -I's to reach the gdtoa directory for .h filesTheo de Raadt
2013-11-01hookup sunxi bits for miniroot and ramdisk, tested on pcduino.Jasper Lievisse Adriaanse
note that on boards without ahci you will need to install to usb and still boot of sd, at least until there's support for the sd slot. ok patrick@
2013-11-01oaic can be booted off.Miod Vallat
2013-11-01syncTheo de Raadt
2013-10-31If if looks like a duck, swims like a duck, and quacks like a duck, thenAlexander Hall
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@
2013-10-31syncStuart Henderson
2013-10-31syncTheo de Raadt