]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r319219: add a sanity check before installworld on the running system
authoremaste <emaste@FreeBSD.org>
Sun, 16 Jul 2017 19:20:15 +0000 (19:20 +0000)
committeremaste <emaste@FreeBSD.org>
Sun, 16 Jul 2017 19:20:15 +0000 (19:20 +0000)
commit80becec91b3e1256e7d3425cfe6b09e2f4b08305
tree06d087adae1ead230c989f65258d8f64b8a07e08
parent091cf7ec482d2b8f1b4e2838916b8d356909e70f
MFC r319219: add a sanity check before installworld on the running system

FreeBSD does not guarantee kernel forward compatibility (that is,
running a newer userland on an older kernel).  The documented upgrade
procedure specifies that installkernel should be performed, followed by
a reboot and then installworld.  As a sanity check when installing onto
the running system (DESTDIR is / or unset), attempt to run "sh echo OK"
using rescue from the objdir.  If rescue fails (e.g., because the system
has not been rebooted and the "old" kernel lacks a system call required
by the to-be-installed world), abort the installation.

This was added to avoid ino64 foot-shooting in HEAD, but is generally
useful for any upgrade case adding new syscalls.

Sponsored by: The FreeBSD Foundation
Makefile.inc1