Upgrading a 12.0-p5 to a 13.1 does not complete:
This is an encrypted root-on-zfs system. Once the system is rebooted from the console the following is encountered:
So I go check for the kernel:
So, kern.bootfile points to a non-existent directory and file. So, which kernel is the system running?
So, just where is the kernel?
<code>
[root@vhost03 ~ (master #)]# find / -name kernel
/usr/lib/debug/boot/kernel
</code>
I do not think that this is the one running, Just a guess but I suspect not.
So, just what is going on? More to the point, how is this fixed?
P.S.
I just love reading how other people have NEVER encountered a screw-up upgrading FreeBSD software. I guess I am plagued with uniquely bad luck.
Code:
[root@vhost03 ~ (master #)]# freebsd-version
12.0-RELEASE-p5
[root@vhost03 ~ (master #)]# freebsd-update -r 13.1-RELEASE upgrade
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 12.0-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 3 metadata files... done.
Inspecting system... done.
The following components of FreeBSD seem to be installed:
kernel/generic world/base world/doc world/lib32
The following components of FreeBSD do not seem to be installed:
kernel/generic-dbg world/base-dbg world/lib32-dbg
Does this look reasonable (y/n)? y
Fetching metadata signature for 13.1-RELEASE from update1.freebsd.org... done.
. . .
To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".
[root@vhost03 ~ (master #)]# /usr/sbin/freebsd-update install
src component not installed, skipped
Installing updates...
Kernel updates have been installed. Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.
[root@vhost03 ~ (master #)]# shutdown -r now
Shutdown NOW!
shutdown: [pid 25353]
*** FINAL System shutdown message from root@vhost03.hamilton.harte-lyne.ca ***
System going down IMMEDIATELY
System shutdown time has arrived
This is an encrypted root-on-zfs system. Once the system is rebooted from the console the following is encountered:
Code:
[root@vhost03 ~ (master #)]# /usr/sbin/freebsd-update install
src component not installed, skipped
Cannot identify running kernel
So I go check for the kernel:
Code:
[root@vhost03 ~ (master #)]# sysctl -n kern.bootfile
/boot/kernel/kernel
[root@vhost03 ~ (master #)]# ls -l /boot/kernel/kernel
ls: /boot/kernel/kernel: No such file or directory
[root@vhost03 ~ (master #)]# ls -l /boot/kernel/*
ls: /boot/kernel/*: No such file or directory
ls -l -d /boot/
ls: /boot/: No such file or directory
[root@vhost03 ~ (master #)]# ls -l /boot
lrwxr-xr-x 1 root wheel 15 Mar 23 2019 /boot -> /bootpool/boot/
[root@vhost03 ~ (master #)]# ls -l /bootpool/boot/
ls: /bootpool/boot/: No such file or directory
[root@vhost03 ~ (master #)]# ls -l /bootpool/
total 0
[root@vhost03 ~ (master #)]# ls -l -d /bootpool/
drwxr-xr-x 2 root wheel 2 May 13 2016 /bootpool/
So, kern.bootfile points to a non-existent directory and file. So, which kernel is the system running?
Code:
[root@vhost03 ~ (master #)]# uname -a
FreeBSD vhost03.hamilton.harte-lyne.ca 13.1-RELEASE-p2 FreeBSD 13.1-RELEASE-p2 GENERIC amd64
So, just where is the kernel?
<code>
[root@vhost03 ~ (master #)]# find / -name kernel
/usr/lib/debug/boot/kernel
</code>
I do not think that this is the one running, Just a guess but I suspect not.
So, just what is going on? More to the point, how is this fixed?
P.S.
I just love reading how other people have NEVER encountered a screw-up upgrading FreeBSD software. I guess I am plagued with uniquely bad luck.