summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/i386_softraid.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* convert macppc, octeon, and loongson to use MI installboot, removingderaadt2020-06-271-2/+2
| | | | | | special case scripting in install.md. (macppc still requires manual steps for HFS bootmode) tested by krw, visa, gkoehler
* Provide clear errors when trying to install oversized boot loaderkn2020-06-081-1/+2
| | | | | | | | | | | | | | | | 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
* Recommit, now that we found out how to fix the BIOS related issues: gootto2020-03-091-1/+2
| | | | | | | back to a 4 byte add instruction. We do not know *why* though, so if somebody likes a challenge... Lots of help from semarie@ who has a few systems showing the issue. ok deraadt@
* Revert previous, there are BIOS that do not like these changes.otto2020-03-071-2/+1
| | | | Sorry for the inconvenience. With help from semarie@.
* Adapt biosboot(8) so it can read boot(8) from an ffs2 filesystem.otto2020-02-281-1/+2
| | | | | | To do this, installboot(8) patches an extra value into biosboot(8). Code originally from Pedro Martelletto with a twist from myself and kettenis@; ok jsing@ kettenis@
* Fix copyright lines, the "one-inode file system" in i386_softraid.c is myotto2019-09-021-1/+2
| | | | | invention; and I have had little to do with the i386_installboot.[ch] files. This was mixed up in the giant reshuffle a few years back. ok jsing@
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-3/+3
| | | | | | 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.
* Plug a couple of leaks of input buffers.krw2016-04-281-1/+2
| | | | Pointed out by David Carlier.
* Don't need <sys/types.h> and <sys/param.h>. Nuke the former when DEV_BSIZEkrw2015-12-011-2/+1
| | | | is needed.
* Backout the backout of installboot softraid non-gpt case fix.stsp2015-10-281-1/+7
| | | | krw and I crossed streams
* Revert GPT change. Breaks non-GPT install/upgrade.krw2015-10-281-7/+1
| | | | Found the hard way by reyk@
* In sr_install_bootblk for i386, don't clobber 'part' in non-GPT case.stsp2015-10-281-5/+5
| | | | | | Found the hard way by reyk@. stupid mistake stsp@ ok reyk@
* Fix installboot(8) on i386/amd64 when softraid is on top of GPT.stsp2015-10-251-1/+7
| | | | ok krw deraadt
* Nuke trailing whitespace to avoid cluttering possible upcoming diffs.krw2015-10-031-4/+4
|
* first batch of cleanup to programs based upon the namespace cleanupsderaadt2015-01-161-2/+3
| | | | | | | in net/pfvar.h sys/proc.h sys/ucred.h arpa/nameser.h change to PATH_MAX, reduce use of MIN() and MAX(), HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc etc ok millert guenther, some review by doug
* Use calloc() instead of malloc()/memset().jsing2014-06-091-3/+2
| | | | From Benjamin Baier.
* Rework installboot and use a single directory with a single makefile. Thejsing2014-01-191-0/+193
directory per machine model is arguably cleaner, however it does not play well with distrib/special and instbin. Discussed with deraadt@