Up to [local] / src / usr.sbin / installboot
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:48 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
HEAD
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)
When system calls indicate an error they return -1, not some arbitrary 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.
Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 13 14:06:10 2018 UTC (5 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.11: +27 -10 lines
Diff to previous 1.11 (colored)
Revert last. Breaks landisk snap building for currently unknown reason. Noticed by deraadt@
Revision 1.11 / (download) - annotate - [select for diffs], Sun Nov 25 17:34:37 2018 UTC (5 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.10: +10 -27 lines
Diff to previous 1.10 (colored)
Don't allow the bootstrap to overlap the start of the OpenBSD area of the disk. Even if the OpenBSD area starts with FS_UNUSED or FS_BOOT partitions. ok deraadt@ as part of larger diff
Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 1 16:55:29 2018 UTC (5 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)
Remove 'overlap_allowance' parameter from bootstrap(). It was added to support Vax. Vax is dead Jim. ok deraadt@
Revision 1.9 / (download) - annotate - [select for diffs], Mon Dec 28 23:00:29 2015 UTC (8 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.8: +3 -5 lines
Diff to previous 1.8 (colored)
Replace lseek/[read|write] with pread|pwrite. ok millert@ a while ago.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 19 19:07:59 2015 UTC (8 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.7: +6 -3 lines
Diff to previous 1.7 (colored)
LABELSECTOR is a DEV_BSIZE quantity. So multiply by DEV_BSIZE and not d_secsize when calculating disklabel location. ok jsing@
Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 15 19:27:30 2015 UTC (8 years, 7 months ago) by miod
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)
Add an extra argument to bootstrap() to allow for a limited overlap between an 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@
Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 16 00:05:12 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)
first batch of cleanup to programs based upon the namespace cleanups 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
Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 25 18:23:02 2014 UTC (9 years, 11 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.4: +2 -0 lines
Diff to previous 1.4 (colored)
Apply/fix OpenBSD tag. ok jsing@
Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 9 13:13:48 2014 UTC (10 years ago) by jsing
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)
Use calloc() instead of malloc()/memset(). From Benjamin Baier.
Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 28 12:01:33 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.2: +11 -9 lines
Diff to previous 1.2 (colored)
Round the size of the bootstrap up to a multiple of the disk sector size. Some bootstraps are already built this way, however others are not.
Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 28 11:26:57 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.1: +16 -15 lines
Diff to previous 1.1 (colored)
Various code clean ups - add a missing header, add a missing prototype, add some casts, tweak some types and variable names.
Revision 1.1 / (download) - annotate - [select for diffs], Fri Dec 27 14:17:55 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
Provide a bootstrap implementation (effectively a `disklabel -B' equivalent) for use with architectures like hppa, landisk and vax.