diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2017-11-04 16:04:17 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2017-11-04 16:04:17 +0000 |
commit | 8ebf8976837b4d18f6e5d78d0f1825f7e9317cd5 (patch) | |
tree | 523882c660e8b409a19fe9d60039322247ef0150 /sys/arch/macppc/conf | |
parent | e8e771be2313fba7c8df2ee2842785698a69251c (diff) |
Since rev 1.502 of rc(8) it creates a /bsd.booted hard link. At the
end of rc we call reorder_kernel which creates a /obsd hard link to
the same kernel.
In the past obsd was only created when doing a manual make install in
the kernel sources.
There is no need for two backup hard links during boot, rearange the
kernel Makefiles to restore previous behaviour and thus stopping
reorder_kernel from scribbling over /obsd.
Makes muscle memory of some kernel developers work again: /obsd can
serve as a known good kernel; and there was much rejoycing...
Discussed at length with benno, rpe, phessler and tb at
p2k17.
Seems like a good idea to deraadt.
OK benno, phessler, rpe, tb
Diffstat (limited to 'sys/arch/macppc/conf')
-rw-r--r-- | sys/arch/macppc/conf/Makefile.macppc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/macppc/conf/Makefile.macppc b/sys/arch/macppc/conf/Makefile.macppc index 78a88b9b573..c11370fb8d9 100644 --- a/sys/arch/macppc/conf/Makefile.macppc +++ b/sys/arch/macppc/conf/Makefile.macppc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.macppc,v 1.92 2017/09/28 16:16:34 patrick Exp $ +# $OpenBSD: Makefile.macppc,v 1.93 2017/11/04 16:04:16 florian Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -140,12 +140,14 @@ locore0.o: ${_machdir}/${_mach}/locore0.S assym.h locore.o: ${_machdir}/${_mach}/locore.S assym.h mutex.o: assym.h -newinstall: +hardlink-obsd: cmp -s bsd /bsd || ln -f /bsd /obsd + +newinstall: umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \ sha256 -h /var/db/kernel.SHA256 /bsd -install: update-link newinstall +install: update-link hardlink-obsd newinstall # pull in the dependency information .ifnmake clean |