summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/installboot.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add an extra argument to bootstrap() to allow for a limited overlap between anmiod2015-10-151-2/+2
| | | | | | | | | | | | | | | | existing partition and the boot blocks span, and update all callers to require an overlap limit of zero sectors (thus not changing their behaviour). Then, add proper support for vax: copy the 2nd-stage boot block to /boot and install the 1st-stage boot block at the beginning of the disk, retaining the disklabel; allow for an overlap of up to 16 sectors, which is perfectly fine as long as your `a' partition is FFS. Note that regular installs will not even have such an overlap, because the default OpenBSD span on a disk on vax starts at sector 16, but installation media use sperific layout which require this. ok krw@
* give up; include stdlib.h from the .h file, sighderaadt2015-10-151-1/+3
|
* add includes for crc32() and uuid_dec_be() missed in rev 1.11jsg2015-10-141-1/+2
| | | | ok krw@
* Backout last. Breaks sparc64, amoung other dubiousness.krw2015-10-141-3/+1
| | | | requested by deraadt@
* Check that the disk specified on the command line is the disk thatkrw2015-10-121-1/+3
| | | | | | files are copied to. Error out with 'cross-device install' if not. ok millert@, ok deraadt@ & jsing@ for previous version
* Refactor fileprefix() and filecopy() to use warn() instead of err()krw2015-10-081-2/+2
| | | | | | | | | to display error message, and to return error indications (NULL and -1 respectively). Use the error indications in write_efisystem() to unwind in the face of more error conditions. In other cases just exit(1) to emulation current behaviour. ok deraadt@
* Make installboot(8) easier to use - copy the second stage boot loader tojsing2014-01-181-1/+2
| | | | | the default location used by the given architecture. This eliminates the need to copy it over manually prior to running installboot.
* Add a -r flag that allows for the mount point of the root filesystem to bejsing2014-01-181-1/+4
| | | | specified. This is primarily for use by the installer and defaults to /.
* Various code clean ups - add a missing header, add a missing prototype,jsing2013-12-281-1/+5
| | | | add some casts, tweak some types and variable names.
* Initial version of a unified installboot(8) that lives outside ofjsing2013-12-271-0/+33
sys/arch/${MACHINE}/stand. For now this only supports i386, however additional architectures will be added and further development can happen in tree. Requested by deraadt@ quite some time ago.