summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/installboot.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* don't print a blank line if no stage1 or stage2 aspectsderaadt2019-10-291-6/+8
|
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* give up on pledge for now.deraadt2015-11-291-4/+1
| | | | this will have to wait until jsing and stsp find time to look at it.
* Apply pledge.deraadt2015-11-261-1/+4
| | | | | The people I asked to review this did not get back to me, so we will test this a different way.
* Backout last. Breaks sparc64, amoung other dubiousness.krw2015-10-141-17/+2
| | | | requested by deraadt@
* Check that the disk specified on the command line is the disk thatkrw2015-10-121-2/+17
| | | | | | 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-3/+9
| | | | | | | | | 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@
* Nuke trailing whitespace to avoid cluttering possible upcoming diffs.krw2015-10-031-2/+2
|
* Assign the return value of getopt() to an int, not a char, so that optionsmiod2015-09-101-3/+2
| | | | actually work on unsigned char platforms.
* Tweak comment re root prefixes.jsing2014-01-191-2/+2
|
* Do not prefix user specified stages with the root filesystem mount point.jsing2014-01-191-3/+3
|
* Add a -r flag that allows for the mount point of the root filesystem to bejsing2014-01-181-3/+18
| | | | specified. This is primarily for use by the installer and defaults to /.
* Initial version of a unified installboot(8) that lives outside ofjsing2013-12-271-0/+103
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.