Solved Upgrade to 15-RELEASE failed

Headless system running 14.3-RELEASE-p7 nicely. System is an Asrock x870 board w/ Ryzen 5 9600.
Made sure to read the release notes and followed the steps for upgrade exactly for binary upgrade.

The upgrade appeared successful applying almost 7k patches.

However, on reboot the realtek-re-kmod driver disappeared. After setting up a usb ethernet adapter, I tried to run pkg. Command would fail stating that a shared object was missing. Bootstrapping pkg was not possible.

Fortunately, I had made a bectl backup and was able to rollback to before the upgrade attempt. I'll take another stab at this but I wanted to document the failed attempt.
 
If your card works a little with the re driver in base you'd better comment out the lines in /boot/loader.conf concerning the realtek driver before to reboot. It was certain that the realtek kmod would not kldload because of the major OS version change.

About pkg, you may use pkg-static and then upgrade all your third-party softwares including the realtek driver.
 
If your card works a little with the re driver in base you'd better comment out the lines in /boot/loader.conf concerning the realtek driver before to reboot. It was certain that the realtek kmod would not kldload because of the major OS version change.

About pkg, you may use pkg-static and then upgrade all your third-party softwares including the realtek driver.

I wish the information about pkg-static was in the release notes. I would have had an easy transition experience. After upgrade, I was able to execute pkg-static to get a clean copy of pkg installed.

I still had a USB-Ethernet connected to the system which aided the upgrade process. At first, I didn't quite understand the nugget about commenting out realtek-re-kmod in /boot/loader.conf at first. In attempting to upgrade packages, I noticed realtek-re-kmod was stuck at the same revision before the system upgrade and version designated for FreeBSD-15 would not install. Then the need to comment out
Code:
if_re_*
in /boot/loader.conf, reboot, and then update made sense.

System now at FreeBSD-15. And I was able to expand my ZFS raidz2 array.
 
Look what pkg repos shows. Normally, you should have FreeBSD-ports and FreeBSD-ports-kmods as repositories (and nothing else). I assume you are on quarterly repos without pkgbase activated (the defaults).

The realtek kmod should be in FreeBSD-ports-kmods. But there is an annoying bug concerning this repos. Sometimes, you need first to delete the package and reinstall it. When I say sometimes, it's rather often if not always. Therefore, I systematically delete all third-party kmods and reinstall all (after the upgrade).

The kmod packages names must all ending by .1500068 and not .1403000.
 
I wish the information about pkg-static was in the release notes.
After a major version upgrade pkg(8) is going to suggest running pkg bootstrap -f. This runs pkg(7) (not pkg(8)):
Code:
     pkg [-46] bootstrap [-fy] [-r reponame]
             Attempt to bootstrap and do not forward anything to pkg(8) after
             it is installed.  With -4 and -6, pkg will force IPv4 or IPv6
             respectively to fetch pkg(8) and its signatures as needed.  If
             the -f flag is specified, then pkg(8) will be fetched and
             installed regardless if it is already installed.  If the -y flag
             is specified, no confirmation will be asked when bootstrapping
             pkg(8).

             If a reponame has been specified, then the configuration for that
             repository will be used.
 
Back
Top