History log of /openbsd-src/usr.sbin/installboot/bootstrap.c (Results 1 – 13 of 13)
Revision Date Author Comments
# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

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

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.

show more ...


# 1f3b8215 13-Dec-2018 krw <krw@openbsd.org>

Revert last. Breaks landisk snap building for currently unknown
reason.

Noticed by deraadt@


# 7c13e1b9 25-Nov-2018 krw <krw@openbsd.org>

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


# f917af54 01-Sep-2018 krw <krw@openbsd.org>

Remove 'overlap_allowance' parameter from bootstrap().

It was added to support Vax. Vax is dead Jim.

ok deraadt@


# c462e017 28-Dec-2015 krw <krw@openbsd.org>

Replace lseek/[read|write] with pread|pwrite.

ok millert@ a while ago.


# 569d6d7e 19-Oct-2015 krw <krw@openbsd.org>

LABELSECTOR is a DEV_BSIZE quantity. So multiply by DEV_BSIZE and not
d_secsize when calculating disklabel location.

ok jsing@


# 5c8b64e6 15-Oct-2015 miod <miod@openbsd.org>

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 no

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@

show more ...


# 9b2ea772 16-Jan-2015 deraadt <deraadt@openbsd.org>

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_NAM

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

show more ...


# 935c4ba1 25-Jun-2014 tobias <tobias@openbsd.org>

Apply/fix OpenBSD tag.

ok jsing@


# 210008b3 09-Jun-2014 jsing <jsing@openbsd.org>

Use calloc() instead of malloc()/memset().

From Benjamin Baier.


# f7ad209e 28-Dec-2013 jsing <jsing@openbsd.org>

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.


# 808c6500 28-Dec-2013 jsing <jsing@openbsd.org>

Various code clean ups - add a missing header, add a missing prototype,
add some casts, tweak some types and variable names.


# 33c4b066 27-Dec-2013 jsing <jsing@openbsd.org>

Provide a bootstrap implementation (effectively a `disklabel -B'
equivalent) for use with architectures like hppa, landisk and vax.