Install BUILDINFO if available.
authorflorian <florian@openbsd.org>
Sat, 15 Jun 2024 15:05:15 +0000 (15:05 +0000)
committerflorian <florian@openbsd.org>
Sat, 15 Jun 2024 15:05:15 +0000 (15:05 +0000)
commitc48f8ce892c26060b5ee64e6d6bccd7d2d138c3d
treea799fc5f615e89563b6f6939cf814f6feafb7958
parent88b2e117b2d8a105ff505481ec0779e43c0f1573
Install BUILDINFO if available.

We already keep /var/db/installed.SHA256 for sysupgrade(8) as a cheap
check to not install the same snapshot over and over again. With
/mnt/var/db/installed.BUILDINFO we can ensure that we are not
installing an older snapshot over a newer snapshot.

Intentionally not yet committing the sysupgrade(8) bits so that we
exercise the sysupgrade(8) / install.sub interaction as it will happen
during the 7.5 -> 7.6 transition. I.e. a newer install.sub getting
installed by an older sysupgrade(8).

deraadt@ likes it.
distrib/miniroot/install.sub