summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/installboot.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Provide clear errors when trying to install oversized boot loaderkn2020-06-081-1/+4
| | | | | | | | | | | | | | | | sparc64 installboot(8) on softraid(4) with too large files, e.g. unstripped builds, fails poorly with "installboot: softraid installboot failed". This is due to the BIOCINSTALLBOOT ioctl(2) returing the default EINVAL rather than using softraid's sr_error() interface properly; additionally, installboot does not check for such message from the bio(4) layer. Make the kernel generate "boot block too large" and "boot loader too large" messages for softraid devices and have installboot act upon them analogous to bioctl(8), by adapting its bio_status() into the new sr_status() helper. Input, reminder to look at bioctl, same kernel diff from, OK jsing
* Remove 'overlap_allowance' parameter from bootstrap().krw2018-09-011-2/+2
| | | | | | It was added to support Vax. Vax is dead Jim. ok deraadt@
* 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.