#
26ce53ea |
| 08-Nov-2022 |
kn <kn@openbsd.org> |
Make "prepare filesystem" softraid aware, fix arm64 softraid install
On EFI platforms, 'installboot -p' on a softraid volume will only prepare the filesysem inside the volume and leave physical soft
Make "prepare filesystem" softraid aware, fix arm64 softraid install
On EFI platforms, 'installboot -p' on a softraid volume will only prepare the filesysem inside the volume and leave physical softraid chunks untouched which leaves you with unbootable chunks.
The current workaround is to prepare chunks manually (see regress).
Fix it in the same spirit the actual "install" already works in softraid.c.
This is what mlarkin has already been tested in a combined diff with the MD -> MI softraid merge bits from the previous commit.
Works fine on amd64, arm64 and sparc64 upgrades and installations.
OK jsing
show more ...
|
#
092d8916 |
| 07-Nov-2022 |
kn <kn@openbsd.org> |
Merge duplicate MD code into MI sr_open_chunk()
It does not have the prettiest signature, but nicely folds identical copies into softraid.c, which then allows us to reuse sr_open_chunk() yet again i
Merge duplicate MD code into MI sr_open_chunk()
It does not have the prettiest signature, but nicely folds identical copies into softraid.c, which then allows us to reuse sr_open_chunk() yet again in an upcoming diff to make -p softraid aware (fixes arm64 installations).
Regress keeps passing. Works fine on amd64, arm64 and sparc64. "looks fine" mlarkin for whom this unbreaks a fresh arm64 softraid install
show more ...
|
#
4a5d5189 |
| 03-Feb-2022 |
visa <visa@openbsd.org> |
installboot(8): Adjustments for EFI platforms
Reduce #ifdef'ing within the control logic to make it clearer that there are no essential differences in behaviour between the platforms.
Make installb
installboot(8): Adjustments for EFI platforms
Reduce #ifdef'ing within the control logic to make it clearer that there are no essential differences in behaviour between the platforms.
Make installboot(8) write startup.nsh to enable simpler and more consistent code in install.md.
Input and OK kettenis@ deraadt@
show more ...
|
#
c3e1bf61 |
| 20-Jul-2021 |
kettenis <kettenis@openbsd.org> |
Add -p option to "prepare" (newfs) a filesystem that will be used for the bootloader. This is a no-op on architectures where such a filesystem isn't needed.
ok krw@, deraadt@
|
#
9de342e3 |
| 08-Jun-2020 |
kn <kn@openbsd.org> |
Provide clear errors when trying to install oversized boot loader
sparc64 installboot(8) on softraid(4) with too large files, e.g. unstripped builds, fails poorly with "installboot: softraid install
Provide clear errors when trying to install oversized boot loader
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
show more ...
|
#
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@
|
#
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 ...
|
#
666622ee |
| 15-Oct-2015 |
deraadt <deraadt@openbsd.org> |
give up; include stdlib.h from the .h file, sigh
|
#
c60e821e |
| 14-Oct-2015 |
jsg <jsg@openbsd.org> |
add includes for crc32() and uuid_dec_be() missed in rev 1.11 ok krw@
|
#
e09cbf07 |
| 14-Oct-2015 |
krw <krw@openbsd.org> |
Backout last. Breaks sparc64, amoung other dubiousness.
requested by deraadt@
|
#
2e8b15db |
| 12-Oct-2015 |
krw <krw@openbsd.org> |
Check that the disk specified on the command line is the disk that files are copied to. Error out with 'cross-device install' if not.
ok millert@, ok deraadt@ & jsing@ for previous version
|
#
597864b7 |
| 08-Oct-2015 |
krw <krw@openbsd.org> |
Refactor fileprefix() and filecopy() to use warn() instead of err() to display error message, and to return error indications (NULL and -1 respectively). Use the error indications in write_efisystem
Refactor fileprefix() and filecopy() to use warn() instead of err() 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@
show more ...
|
#
7762a34b |
| 18-Jan-2014 |
jsing <jsing@openbsd.org> |
Make installboot(8) easier to use - copy the second stage boot loader to the default location used by the given architecture. This eliminates the need to copy it over manually prior to running instal
Make installboot(8) easier to use - copy the second stage boot loader to the default location used by the given architecture. This eliminates the need to copy it over manually prior to running installboot.
show more ...
|
#
46339098 |
| 18-Jan-2014 |
jsing <jsing@openbsd.org> |
Add a -r flag that allows for the mount point of the root filesystem to be specified. This is primarily for use by the installer and defaults to /.
|
#
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.
|
#
a7036d21 |
| 27-Dec-2013 |
jsing <jsing@openbsd.org> |
Initial version of a unified installboot(8) that lives outside of sys/arch/${MACHINE}/stand. For now this only supports i386, however additional architectures will be added and further development ca
Initial version of a unified installboot(8) that lives outside of 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.
show more ...
|