Up to [local] / src / usr.sbin / installboot
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.16 / (download) - annotate - [select for diffs], Tue Nov 8 12:08:53 2022 UTC (19 months ago) by kn
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,
HEAD
Changes since 1.15: +5 -1 lines
Diff to previous 1.15 (colored)
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
Revision 1.15 / (download) - annotate - [select for diffs], Fri Aug 19 08:27:48 2022 UTC (21 months, 3 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2
Changes since 1.14: +19 -18 lines
Diff to previous 1.14 (colored)
Split -p into own synopsis Platform-dependent preparation of the filesystem required by the boot loader only ever creates a new fileystem without instaling using any bootstrap files. To reflect reality, turn # installboot -nvp vnd0 Using / as root would install bootstrap on /dev/rvnd0c using first-stage /usr/mdec/biosboot, second-stage /usr/mdec/boot would newfs 545c9bdf92aa18f9.i into # ./obj/installboot -nvp vnd0 would newfs 4db2c0e89e0d3268.i and error out if -p is combined with -r or stages: $ man -hl./installboot.8 installboot [-nv] [-r root] disk [stage1 [stage2]] installboot [-nv] -p disk Feedback OK millert
Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 20 14:51:56 2021 UTC (2 years, 10 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0
Changes since 1.13: +12 -3 lines
Diff to previous 1.13 (colored)
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@
Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 29 17:41:45 2019 UTC (4 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.12: +8 -6 lines
Diff to previous 1.12 (colored)
don't print a blank line if no stage1 or stage2 aspects
Revision 1.12 / (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_6_6_BASE,
OPENBSD_6_6
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (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.11 / (download) - annotate - [select for diffs], Sun Nov 29 00:14:07 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
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.10: +1 -4 lines
Diff to previous 1.10 (colored)
give up on pledge for now. this will have to wait until jsing and stsp find time to look at it.
Revision 1.10 / (download) - annotate - [select for diffs], Thu Nov 26 19:03:10 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)
Apply pledge. The people I asked to review this did not get back to me, so we will test this a different way.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 14 00:19:04 2015 UTC (8 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.8: +2 -17 lines
Diff to previous 1.8 (colored)
Backout last. Breaks sparc64, amoung other dubiousness. requested by deraadt@
Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 12 20:52:20 2015 UTC (8 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.7: +17 -2 lines
Diff to previous 1.7 (colored)
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
Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 8 14:50:38 2015 UTC (8 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.6: +9 -3 lines
Diff to previous 1.6 (colored)
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@
Revision 1.6 / (download) - annotate - [select for diffs], Sat Oct 3 16:56:52 2015 UTC (8 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)
Nuke trailing whitespace to avoid cluttering possible upcoming diffs.
Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 10 16:53:28 2015 UTC (8 years, 9 months ago) by miod
Branch: MAIN
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)
Assign the return value of getopt() to an int, not a char, so that options actually work on unsigned char platforms.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Jan 19 04:14:22 2014 UTC (10 years, 4 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7,
OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)
Tweak comment re root prefixes.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Jan 19 03:49:31 2014 UTC (10 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)
Do not prefix user specified stages with the root filesystem mount point.
Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 18 02:47:27 2014 UTC (10 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.1: +18 -3 lines
Diff to previous 1.1 (colored)
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 /.
Revision 1.1 / (download) - annotate - [select for diffs], Fri Dec 27 13:52:40 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
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.