[Bug 266566] Unable to complete upgrade to 13.1 from 12.0 -

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 23 Sep 2022 16:05:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266566

            Bug ID: 266566
           Summary: Unable to complete upgrade to 13.1 from 12.0 -
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: byrnejb@harte-lyne.ca

Attempting to upgrade a hot running 12.0 to 13.1 leaves the host in an
incomplete state and will not allow freebsd-update install to run.

/usr/sbin/freebsd-update install
src component not installed, skipped
Cannot identify running kernel

Checking sysctl for the kernel location reveals this:

sysctl -n kern.bootfile
/boot/kernel/kernel

/boot is a softlink to /bootpool/boot

ll /boot
lrwxr-xr-x  1 root  wheel  15 Mar 23  2019 /boot -> /bootpool/boot/
ll -d /bootpool/ 
drwxr-xr-x  2 root  wheel  2 May 13  2016 /bootpool/

There is no kernel in /bootpool/boot/.  In fact, there are no files or
directories at all in /bootpool/

There are a minimal number of kernel modules loaded.

kldstat
Id Refs Address                Size Name
 1   19 0xffffffff80200000  1f30590 kernel
 2    1 0xffffffff82131000   5b93a0 zfs.ko
 3    1 0xffffffff826f0000     e518 if_bridge.ko
 4    2 0xffffffff826ff000     78c0 bridgestp.ko
 5    1 0xffffffff82707000     3978 nmdm.ko
 6    1 0xffffffff8270b000    1ae68 geom_eli.ko

Attempting to provide the running kernel to freebsd-update does not resolve the
issue:

uname -a
FreeBSD vhost03.hamilton.harte-lyne.ca 13.1-RELEASE-p2 FreeBSD 13.1-RELEASE-p2
GENERIC  amd64

freebsd-update --currently-running 13.1-RELEASE-p2 install
src component not installed, skipped
Cannot identify running kernel

-- 
You are receiving this mail because:
You are the assignee for the bug.