On Mon, Jul 03, 2017 at 11:52:09AM +0300, Kapetanakis Giannis wrote:
> Hi,
> 
> I've got this today after applying Jul 2 snapshot
> 
> sha256: cannot open /var/db/kernel.SHA256: No such file or directory
> sha256: /bsd does not exist in /var/db/kernel.SHA256
> 
> upgrade was "without the install kernel"
> https://www.openbsd.org/faq/upgrade61.html#NoInstKern

Thanks. It's a known issue that was briefly discussed here:

https://marc.info/?l=openbsd-tech&m=149821809527605&w=2

also:

https://marc.info/?l=openbsd-cvs&m=149821856027706&w=2

I will think about a better solution for this problem once the design
of KARL has stabilized (there are further steps that are planned).

For the moment, I suggest that you compute the kernel hash by hand
with

        sha256 -h /var/db/kernel.SHA256 /bsd

*after* installing the new kernels but *before* extracting the userland.

After a reboot, rc(8) will do the rest of the cleanup since the hash
will be correct. Once you get the 'kernel relink info' mail, reboot
once more to run a unique kernel.

If you want to avoid the second reboot you'll need to study
reorder_kernel() in /etc/rc.

Reply via email to