Up to [local] / src / usr.sbin / installboot
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 26 18:04:21 2023 UTC (13 months, 2 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
HEAD
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)
Fix confusing comments, no object change; with caspar
Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 6 12:33:41 2022 UTC (19 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (colored)
Don't leak args.fspec in create_filesystem(). ok kn@
Revision 1.7 / (download) - annotate - [select for diffs], Tue Sep 27 11:31:46 2022 UTC (20 months, 1 week ago) by kn
Branch: MAIN
Changes since 1.6: +6 -15 lines
Diff to previous 1.6 (colored)
fix passing explicit stage files This fixes installboot regress on powerpc64. The exact same diff already landed for macppc; efi also has the same fix for md_init() but without the string handling cleanup that entails. macppc_installboot.c r1.6 "Fix passing explicit stage files": Using `stage1' leads to a bit more cleanup since early MI installboot.c handles `-r', i.e. write_filesystem() no longer has needs to do the fileprefix() dance itself. OK gkoehler
Revision 1.6 / (download) - annotate - [select for diffs], Wed Sep 14 16:43:00 2022 UTC (20 months, 3 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2
Changes since 1.5: +2 -9 lines
Diff to previous 1.5 (colored)
Backout "Reflect script failure in exit code" amd64 install using (G)PT seems busted as reported by tb
Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 9 15:53:16 2022 UTC (21 months ago) by kn
Branch: MAIN
Changes since 1.4: +10 -3 lines
Diff to previous 1.4 (colored)
Reflect script failure in exit code installboot(8) runs newfs(8) and fsck(8) via system(3) but only checks failures of the function itself, always returning zero no matter what the programs/shell returned. This is bad for regress tests relying on correct return codes. create_filesystem() itself must not exit as write_filesystem() calls it and cleans up temporary files upon failure. Make it return -1 if the script returned non-zero so write_filesystem() handles it as error, cleans up and makes installboot exit 1. Stop ignoring create_filesystem()'s return code in md_prepareboot() and exit the same way. Here's the change in behaviour on arm64 (newfs fails because of the vnd/disklabel race, see "Race in disk_attach_callback?" on tech@): # installboot -vp vnd0 ; echo $? newfsing 6694ae5b0d7596ed.i newfs_msdos: /dev/r6694ae5b0d7596ed.i: No such file or directory 0 # ./obj/installboot -vp vnd0 ; echo $? newfsing 6694ae5b0d7596ed.i newfs_msdos: /dev/r6694ae5b0d7596ed.i: No such file or directory 1 Tested on amd64 arm64 macppc octeon powerpc64 sparc64 OK millert
Revision 1.4 / (download) - annotate - [select for diffs], Wed Aug 31 20:52:15 2022 UTC (21 months, 1 week ago) by krw
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)
Replace "newfs_msdos" and "fsck_msdos" with "newfs -t msdos" and "fsck -t msdos". Add some missing spaces after "=". Constify the static strings. Prodded a while ago by deraadt@, tweaks from kn@, ok kn@
Revision 1.3 / (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.2: +67 -13 lines
Diff to previous 1.2 (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.2 / (download) - annotate - [select for diffs], Sat Jul 18 15:28:38 2020 UTC (3 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8
Changes since 1.1: +50 -15 lines
Diff to previous 1.1 (colored)
Create grub.cfg file as required ok kettenis
Revision 1.1 / (download) - annotate - [select for diffs], Fri Jul 17 08:03:56 2020 UTC (3 years, 10 months ago) by kettenis
Branch: MAIN
Add powerpc64 support; straight copy from octeon. ok deraadt@