Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-12-01 | Steal code from kern/subr_disk.c to check for a protective MBR before | Kenneth R Westerback | |
using GPT info. Otherwise GPT remnants might become revenants. | |||
2015-12-01 | aviion went away | Theo de Raadt | |
2015-12-01 | Don't need <sys/types.h> and <sys/param.h>. Nuke the former when DEV_BSIZE | Kenneth R Westerback | |
is needed. | |||
2015-11-30 | Revert the sync -> fsync conversion (at least for the time being) - there | Joel Sing | |
is a good chance that this is causing the 'No blocks to load' errors that various people have encountered. | |||
2015-11-29 | give up on pledge for now. | Theo de Raadt | |
this will have to wait until jsing and stsp find time to look at it. | |||
2015-11-26 | Apply pledge. | Theo de Raadt | |
The people I asked to review this did not get back to me, so we will test this a different way. | |||
2015-11-04 | fix a memory leak in multiple error paths | Jonathan Gray | |
ok krw@ | |||
2015-11-03 | fix a memory leak in an error path | Jonathan Gray | |
2015-10-28 | Backout the backout of installboot softraid non-gpt case fix. | Stefan Sperling | |
krw and I crossed streams | |||
2015-10-28 | Revert GPT change. Breaks non-GPT install/upgrade. | Kenneth R Westerback | |
Found the hard way by reyk@ | |||
2015-10-28 | In sr_install_bootblk for i386, don't clobber 'part' in non-GPT case. | Stefan Sperling | |
Found the hard way by reyk@. stupid mistake stsp@ ok reyk@ | |||
2015-10-25 | Fix installboot(8) on i386/amd64 when softraid is on top of GPT. | Stefan Sperling | |
ok krw deraadt | |||
2015-10-19 | Add parenthesis gcc wants and remove defined but unused label gcc | Kenneth R Westerback | |
complains about. ok deraadt@ on parethesis | |||
2015-10-19 | LABELSECTOR is a DEV_BSIZE quantity. So multiply by DEV_BSIZE and not | Kenneth R Westerback | |
d_secsize when calculating disklabel location. ok jsing@ | |||
2015-10-19 | Nuke unused variable. | Kenneth R Westerback | |
2015-10-18 | Fix comments. | Robert Peichaer | |
OK krw@ | |||
2015-10-16 | Check file sizes only for regular files. The current code breaks savecore | Tobias Stoeckmann | |
due to its kvm handling. ok deraadt | |||
2015-10-16 | Merge nlist out of boundary access fix with other nlist implementations. | Tobias Stoeckmann | |
While at it, merge style and typo fixes back into nlist(3), too. ok deraadt, jsing, millert | |||
2015-10-15 | Add an extra argument to bootstrap() to allow for a limited overlap between an | Miod Vallat | |
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@ | |||
2015-10-15 | give up; include stdlib.h from the .h file, sigh | Theo de Raadt | |
2015-10-14 | worse, need even more includes... | Theo de Raadt | |
2015-10-14 | add includes for crc32() and uuid_dec_be() missed in rev 1.11 | Jonathan Gray | |
ok krw@ | |||
2015-10-14 | Backout last. Breaks sparc64, amoung other dubiousness. | Kenneth R Westerback | |
requested by deraadt@ | |||
2015-10-12 | Check that the disk specified on the command line is the disk that | Kenneth R Westerback | |
files are copied to. Error out with 'cross-device install' if not. ok millert@, ok deraadt@ & jsing@ for previous version | |||
2015-10-11 | needs at least some include love; choosing <stdlib.h> | Theo de Raadt | |
2015-10-08 | Refactor fileprefix() and filecopy() to use warn() instead of err() | Kenneth R Westerback | |
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@ | |||
2015-10-07 | Add initial support for installing UEFI boot files to a GTP EFI System | Kenneth R Westerback | |
Partition. Further work to be done in-tree. ok deraadt@ | |||
2015-10-05 | Out, damned whitespace! | Kenneth R Westerback | |
2015-10-05 | Copy the stage2 file to / in md_installboot(). | Miod Vallat | |
2015-10-03 | Nuke trailing whitespace to avoid cluttering possible upcoming diffs. | Kenneth R Westerback | |
2015-09-10 | Assign the return value of getopt() to an int, not a char, so that options | Miod Vallat | |
actually work on unsigned char platforms. | |||
2015-01-20 | Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or | Theo de Raadt | |
delete <sys/param.h> if now possible ok guenther | |||
2015-01-16 | first batch of cleanup to programs based upon the namespace cleanups | Theo de Raadt | |
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 | |||
2014-10-08 | use reallocarray() to detect int overflow; ok doug | Theo de Raadt | |
2014-07-08 | decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h | Theo de Raadt | |
don't need to be married. ok guenther miod beck jsing kettenis | |||
2014-06-25 | Apply/fix OpenBSD tag. | Tobias Stoeckmann | |
ok jsing@ | |||
2014-06-25 | Check malloc return value for NULL. | Tobias Stoeckmann | |
ok jsing@ | |||
2014-06-09 | Change the installboot file copying process so that it carefully | Joel Sing | |
overwrites the existing file, before truncating it to the final length. This means that we will keep the same inode and potentially retain the same disk data block allocation between runs. This will aid users who multiboot since it makes it less likely that the PBR will change, although as before, there is no guarantee. Obviously if the second stage boot loader grows or shrinks then the PBR will change regardless. | |||
2014-06-09 | Use calloc() instead of malloc()/memset(). | Joel Sing | |
From Benjamin Baier. | |||
2014-04-27 | Don't zap disklabel (and next 6 blocks) when installing boot block on | Kenneth R Westerback | |
4k-sector disk drives. Noted and fix tested by David Vasek via misc@ tweaks & ok jsing@ | |||
2014-03-18 | Retire hp300, mvme68k and mvme88k ports. These ports have no users, keeping | Miod Vallat | |
this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish. | |||
2014-02-21 | Use ${STATIC} not -static | Theo de Raadt | |
ok jsing | |||
2014-01-19 | Tweak comment re root prefixes. | Joel Sing | |
2014-01-19 | Do not prefix user specified stages with the root filesystem mount point. | Joel Sing | |
2014-01-19 | When copying files do it in 512 byte blocks so that we're less likely to | Joel Sing | |
hit file system allocation issues on install media. Requested by deraadt@ | |||
2014-01-19 | Rework installboot and use a single directory with a single makefile. The | Joel Sing | |
directory per machine model is arguably cleaner, however it does not play well with distrib/special and instbin. Discussed with deraadt@ | |||
2014-01-18 | sort options; | Jason McIntyre | |
2014-01-18 | Make installboot(8) easier to use - copy the second stage boot loader to | Joel Sing | |
the default location used by the given architecture. This eliminates the need to copy it over manually prior to running installboot. | |||
2014-01-18 | Add a -r flag that allows for the mount point of the root filesystem to be | Joel Sing | |
specified. This is primarily for use by the installer and defaults to /. | |||
2014-01-18 | Build installboot on all architectures. | Joel Sing | |