OpenBSD CVS

CVS log for src/usr.sbin/installboot/Makefile


[BACK] Up to [local] / src / usr.sbin / installboot

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 16 22:59:41 2023 UTC (16 months, 3 weeks 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.26: +2 -2 lines
Diff to previous 1.26 (colored)

Enable softraid(4) support in installboot(8)

riscv64 efiboot already supports booting from softraid volumes.

These installboot bits make sure that the boot loader will be installed on
chunk devices rather than the volume for root on softraid installations,
i.e. full boot support for riscv64, just like amd64, arm64 and sparc64.

regress is happy.

OK kettenis

Revision 1.26 / (download) - annotate - [select for diffs], Wed Aug 31 18:46:06 2022 UTC (21 months, 1 week ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.25: +1 -2 lines
Diff to previous 1.25 (colored)

Make installboot on landisk aware of a possible MBR on the disk, and in this
case install the first level bootstrap at the beginning of the of the wd0a
filesystem, rather than at the beginning of the disk.

Both locations work but the previous behaviour overwriting an existing MBR
is a violation of POLA.

tweaks & ok krw@

Revision 1.25 / (download) - annotate - [select for diffs], Mon Aug 15 17:06:43 2022 UTC (21 months, 3 weeks ago) by kn
Branch: MAIN
Changes since 1.24: +5 -1 lines
Diff to previous 1.24 (colored)

Add initial piece for softraid(4) support on arm64

arm64 is the only currently supported OpenBSD platform which both
a) supports booting off root on softraid(4) (kernel and bootloader) and
b) is an EFI platform (as far as installboot(8) is concerned).

Currently, installboot treats softraid root volumes as regular devices,
ignoring ignores chunk devices completely.

Teach installboot the first bits of softraid support for EFI:
installing the single-stage boot loader on chunks rather than the volume.

Copy over sparc64's softraid stage-1 code as-is and make its stage-2 a NOOP:

	# ./obj/installboot -v sd4
	Using / as root
	installing bootstrap on /dev/rsd4c
	using first-stage /usr/mdec/BOOTAA64.EFI
	sd4: softraid volume with 1 disk(s)
	sd0a: installing boot blocks on /dev/rsd0c
	copying /usr/mdec/BOOTAA64.EFI to /tmp/installboot.KuBD4zkfpM/efi/boot/bootaa64.efi
	writing /tmp/installboot.KuBD4zkfpM/efi/boot/startup.nsh

arm64 miniroot fits and boots with this.

OK stsp


As of now, EFI partitions must still be created manually as installboot's
'-p' does not support softraid at all (next missing piece for root on
softraid on arm64 installations to work out-of-the-box).

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 3 10:21:13 2022 UTC (2 years, 4 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Rename armv7_installboot.c to efi_installboot.c.

The code is common to EFI platforms, not specific to armv7.

Suggested by kettenis@

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jun 27 04:52:01 2021 UTC (2 years, 11 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

reuse armv7 installboot for riscv64
ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 17 08:03:56 2020 UTC (3 years, 10 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

Add powerpc64 support; straight copy from octeon.

ok deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jun 27 15:35:29 2020 UTC (3 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +7 -1 lines
Diff to previous 1.20 (colored)

convert macppc, octeon, and loongson to use MI installboot, removing
special case scripting in install.md.
(macppc still requires manual steps for HFS bootmode)
tested by krw, visa, gkoehler

Revision 1.20 / (download) - annotate - [select for diffs], Sun May 7 10:40:17 2017 UTC (7 years, 1 month ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, 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
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Add arm64 support.

ok tom@

Revision 1.19 / (download) - annotate - [select for diffs], Sun Aug 14 13:47:52 2016 UTC (7 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.18: +2 -7 lines
Diff to previous 1.18 (colored)

Merge identical amd64 and i386 stanzas.

Requested & ok jsing@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 20 19:56:24 2016 UTC (7 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.17: +7 -55 lines
Diff to previous 1.17 (colored)

Use more compact idiom to select architecture dependent files to compile. No
intentional functional change.

Diff from Miod.

ok millert@ deraadt@

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 31 18:35:58 2016 UTC (8 years ago) by kettenis
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Add support for armv7.  Fix an error message in the i386 support before
creating more copies.

ok deraadt@, jsing@

Revision 1.16 / (download) - annotate - [select for diffs], Wed May 11 21:52:51 2016 UTC (8 years ago) by deraadt
Branch: MAIN
Changes since 1.15: +1 -6 lines
Diff to previous 1.15 (colored)

remove hppa64 port, which we never got going beyond broken single users.
hppa reverse-stack gives us a valuable test case, but most developers don't
have a 2nd one to proceed further with this.
ok kettenis

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 9 16:28:50 2016 UTC (8 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +1 -6 lines
Diff to previous 1.14 (colored)

We are done providing support for the vax.
lots of agreement.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 1 15:33:17 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.13: +1 -5 lines
Diff to previous 1.13 (colored)

aviion went away

Revision 1.13 / (download) - annotate - [select for diffs], Tue Mar 18 22:36:37 2014 UTC (10 years, 2 months ago) by miod
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
Changes since 1.12: +1 -14 lines
Diff to previous 1.12 (colored)

Retire hp300, mvme68k and mvme88k ports. These ports have no users, keeping
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.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Feb 21 08:54:57 2014 UTC (10 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Use ${STATIC} not -static
ok jsing

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jan 19 02:58:50 2014 UTC (10 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.10: +101 -2 lines
Diff to previous 1.10 (colored)

Rework installboot and use a single directory with a single makefile. The
directory per machine model is arguably cleaner, however it does not play
well with distrib/special and instbin.

Discussed with deraadt@

Revision 1.10 / (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.9: +2 -2 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Sat Jan 18 02:45:38 2014 UTC (10 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.8: +1 -11 lines
Diff to previous 1.8 (colored)

Build installboot on all architectures.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jan 5 16:02:40 2014 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.7: +4 -5 lines
Diff to previous 1.7 (colored)

Add initial man page for installboot.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 28 14:45:57 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Add installboot support for sparc64.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 28 13:58:15 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored)

Add installboot support for the remaining `disklabel -B' architectures
(hp300, hppa64 and landisk). hp300 and landisk are untested, however they
should "just work" - hopefully someone with access to this hardware can
confirm.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 28 12:03:57 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

Add installboot support for vax.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 28 11:00:33 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.3: +9 -1 lines
Diff to previous 1.3 (colored)

Tweak makefiles so that we pull in source files based on defines.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 27 14:23:49 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Add installboot support for hppa.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 27 14:12:56 2013 UTC (10 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Add installboot support for amd64.

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.