Discussion:
kernel (6.2 amd-64 mp) relinking failed on cloned disk
(too old to reply)
Z Ero
2018-04-11 03:16:14 UTC
Permalink
Raw Message
Hello

I cloned a disk that had OpenBSD installed via

dd if=/dev/r{source_dev} of=/dev/r{target_dev} bs=16m

Now when I boot from the cloned disk I get the following error
login: reorder_kernel: kernel relinking failed; see
/usr/share/compile/GENERIC.MP
/relink.log


When I cat "relink.log" I get
(SHA256) /bsd: FAILED

Does this mean that a machine specific hash / checksum required to
validate / execute the kernel relink is not working or what?

Otherwise the machine works fine.

Is the error a real cause for concern? Cloning a working setup with dd
as I did saves me a bunch of time vs. installing and configuring a new
system.

Also, how to correct the error, if possible?

Thanks
Benjamin Baier
2018-04-11 13:57:49 UTC
Permalink
Raw Message
On Tue, 10 Apr 2018 22:16:14 -0500
Z Ero <***@gmail.com> wrote:
> Does this mean that a machine specific hash / checksum required to
> validate / execute the kernel relink is not working or what?

It compares /bsd with checksum in /var/db/kernel.SHA256
if it does not match kernel relinking is disabled because it
assumes you are a kernel developer and know what you are doing.

> Also, how to correct the error, if possible?

$ doas sha256 -h /var/db/kernel.SHA256 /bsd
Loading...