freebsd-update - just partly

0 views
Skip to first unread message

infoomatic

unread,
Dec 17, 2025, 6:38:56 AM (2 days ago) Dec 17
to freebsd-...@freebsd.org
Hi,

I just updated 3 of my 15.0-RELEASE systems. However, two of my
production systems which are NOT running with pkgbase after a reboot
still report the kernel to be 15.0-RELEASE (and since there is a zfs
errata with a fix this seems odd). A test VM running pkgbase after a
reboot reports 15.0-RELEASE-p1 kernel. Userland is 15.0-RELEASE-p1 on
all systems. How can I fix this?

Regards,

Robert

Polarian

unread,
Dec 17, 2025, 9:17:56 AM (2 days ago) Dec 17
to ques...@freebsd.org
Hey,
Updating with freebsd-update or through src (buildworld/buildkernel)
are done in two steps.

1. Updating the kernel, this is done first, this is also why you are
told to reboot after an upgrade, so the new kernel can be loaded.

However, this is only the kernel, not the "world" (in generic terms,
the world is the userspace, if you are more familiar with Linux think
of kernel as Linux (package) and world as glibc/coreutils/systemd etc),
which is why you must do the next step:

2. Updating world, this is done by executing freebsd-update install
after the reboot, this will install the pending upgrade. After this you
should reboot again.

Then your system is entirely upgraded. If you would like to see if
there is pending upgrades to install use:

freebsd-update updatesready

For more information about all of these commands please read the short
but concise freebsd-update(8) manual page.

Hope this helps!

Take care,
--
Polarian
Jabber/XMPP: pola...@icebound.dev

Matthias Fechner

unread,
Dec 17, 2025, 9:44:35 AM (2 days ago) Dec 17
to ques...@freebsd.org
For my upgrade with:

freebsd-update fetch
freebsd-update install
shutdown -r now

worked fine.
If you execute freebsd-update install again, it will tell you, that now
userland update is available for FreeBSD 15.0-p1.

You can check the version with:

freebsd-version -u -k
15.0-RELEASE
15.0-RELEASE-p1

Only kernel was upgrade, but not userland so like you had it for your
pkgbase.
Are you sure the freebsd-update really download something?

Matthias


infoomatic

unread,
Dec 17, 2025, 11:37:49 AM (2 days ago) Dec 17
to ques...@freebsd.org
On 17.12.25 15:43, Matthias Fechner wrote:
> For my upgrade with:
>
> freebsd-update fetch
> freebsd-update install
> shutdown -r now
>

It seems you did not get the kernel update neither.

Usually, this works, and I have been using it since 9.0. However,
"freebsd-version -kru" on the non-pkgbase systems prints:
15.0-RELEASE
15.0-RELEASE
15.0-RELEASE-p1

Which means I did not get the kernel update, and only userland was
updated to -p1. freebsd-update fetch did download files:

[root@log /root]# freebsd-update fetch
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update2.freebsd.org... done.
Fetching metadata signature for 15.0-RELEASE from update2.freebsd.org...
done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 6 patches.... done.
Applying patches... done.

[root@log /root]# freebsd-update install
src component not installed, skipped
Creating snapshot of existing boot environment... done.
Installing updates...
Restarting sshd after upgrade
Performing sanity check on sshd configuration.
Stopping sshd.
Waiting for PIDS: 73910.
Performing sanity check on sshd configuration.
Starting sshd.
done.

^^ after the usual procedure I did a shutdown -r now. After that, "uname
-a" prints "FreeBSD log 15.0-RELEASE FreeBSD 15.0-RELEASE
releng/15.0-n280995-7aedc8de6446 GENERIC amd64" - so no kernel update.

On the pkgbase system, after the reboot, "uname -a" prints "FreeBSD
vmfreebsd 15.0-RELEASE-p1 FreeBSD 15.0-RELEASE-p1
releng/15.0-n280999-7bceec30b351 GENERIC amd64"

I did get the kernel update on the pkgbase-system: "freebsd-version
-kru" prints:
15.0-RELEASE-p1
15.0-RELEASE-p1
15.0-RELEASE-p1


I deleted everything from /var/db/freebsd-update, but this did not
change anything - I still do not get the kernel update to -p1 on my
non-pkgbase systems.

As a side note: "freebsd-version -k -u" and "freebsd-version -u -k" is
the same output on all systems, so don't expect the parameter be aligned
with the output line.

Any ideas? Thanks!

Robert



Martin

unread,
Dec 17, 2025, 5:27:17 PM (2 days ago) Dec 17
to freebsd-...@freebsd.org
This is the same situation for me on all my non-pkgbase systems!



Dan Bernstein

unread,
Dec 17, 2025, 11:14:18 PM (2 days ago) Dec 17
to Martin, freebsd-...@freebsd.org
I’m observing a similar issue after attempting to update an arm64 system from 14.3-RELEASE-p6 to 14.3-RELEASE-p7. I now see:

$ freebsd-version -kru
14.3-RELEASE-p5
14.3-RELEASE-p5
14.3-RELEASE-p7

freebsd-update fetch reports that “No updates needed to update system to 14.3-RELEASE-p7” while “freebsd-update IDS” shows hash mismatches for the kernel itself and several other files under /boot/kernel. Inexplicably (to me), it shows multiple different expected hashes for some files, for example:

/boot/kernel/kernel has SHA256 hash c20c901ec19379ce5629207c603113bdda14e75373838201eaad68f497ca8430, but should have SHA256 hash 418fb8b11c0578ff77b5004a1982d823d899b9e4f073d6a66febc2fbb14b728f.
/boot/kernel/kernel has SHA256 hash c20c901ec19379ce5629207c603113bdda14e75373838201eaad68f497ca8430, but should have SHA256 hash b51253d9a93559ebc9ffdc400e7ca871ceafb3ef74fdde4e7cb02f0befe9f16c.

I am not sure what’s a good way to complete the update to this system.

Matthias Fechner

unread,
Dec 18, 2025, 12:35:22 AM (yesterday) Dec 18
to ques...@freebsd.org
Am 17.12.2025 um 18:37 schrieb infoomatic:
> I deleted everything from /var/db/freebsd-update, but this did not
> change anything - I still do not get the kernel update to -p1 on my
> non-pkgbase systems.
>
> As a side note: "freebsd-version -k -u" and "freebsd-version -u -k" is
> the same output on all systems, so don't expect the parameter be
> aligned with the output line.
Maybe a missing merge, freebsd-update does not list to install a new
kernel which could explain why `uname -a` does not show it:

[00:00:00] Upgrading using http
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 15.0-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata patches.. done.
Applying metadata patches... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 8 patches..... done.
Applying patches... done.
The following files will be updated as part of updating to
15.0-RELEASE-p1:
/bin/freebsd-version
/rescue/[
/rescue/bectl
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/rescue/chmod
/rescue/chown
/rescue/chroot
/rescue/clri
/rescue/cp
/rescue/csh
/rescue/date
/rescue/dd
/rescue/devfs
/rescue/df
/rescue/dhclient
/rescue/disklabel
/rescue/dmesg
/rescue/dump
/rescue/dumpfs
/rescue/dumpon
/rescue/echo
/rescue/ed
/rescue/ex
/rescue/expr
/rescue/fastboot
/rescue/fasthalt
/rescue/fdisk
/rescue/fetch
/rescue/fsck
/rescue/fsck_4.2bsd
/rescue/fsck_ffs
/rescue/fsck_msdosfs
/rescue/fsck_ufs
/rescue/fsdb
/rescue/fsirand
/rescue/geom
/rescue/getfacl
/rescue/glabel
/rescue/gpart
/rescue/groups
/rescue/gunzip
/rescue/gzcat
/rescue/gzip
/rescue/halt
/rescue/head
/rescue/hostname
/rescue/id
/rescue/ifconfig
/rescue/init
/rescue/ipf
/rescue/ipfw
/rescue/iscsictl
/rescue/iscsid
/rescue/kenv
/rescue/kill
/rescue/kldconfig
/rescue/kldload
/rescue/kldstat
/rescue/kldunload
/rescue/ldconfig
/rescue/less
/rescue/link
/rescue/ln
/rescue/ls
/rescue/lzcat
/rescue/lzma
/rescue/md5
/rescue/mdconfig
/rescue/mdmfs
/rescue/mkdir
/rescue/mknod
/rescue/more
/rescue/mount
/rescue/mount_cd9660
/rescue/mount_msdosfs
/rescue/mount_nfs
/rescue/mount_nullfs
/rescue/mount_udf
/rescue/mount_unionfs
/rescue/mt
/rescue/mv
/rescue/nc
/rescue/newfs
/rescue/newfs_msdos
/rescue/nextboot
/rescue/nos-tun
/rescue/pfctl
/rescue/pgrep
/rescue/ping
/rescue/ping6
/rescue/pkill
/rescue/poweroff
/rescue/ps
/rescue/pwd
/rescue/rcorder
/rescue/rdump
/rescue/realpath
/rescue/reboot
/rescue/red
/rescue/rescue
/rescue/restore
/rescue/rm
/rescue/rmdir
/rescue/route
/rescue/routed
/rescue/rrestore
/rescue/rtquery
/rescue/rtsol
/rescue/savecore
/rescue/sed
/rescue/setfacl
/rescue/sh
/rescue/shutdown
/rescue/sleep
/rescue/stty
/rescue/swapon
/rescue/sync
/rescue/sysctl
/rescue/tail
/rescue/tar
/rescue/tcsh
/rescue/tee
/rescue/test
/rescue/tunefs
/rescue/umount
/rescue/unlink
/rescue/unlzma
/rescue/unxz
/rescue/unzstd
/rescue/vi
/rescue/whoami
/rescue/xz
/rescue/xzcat
/rescue/zcat
/rescue/zdb
/rescue/zfs
/rescue/zfsbootcfg
/rescue/zpool
/rescue/zstd
/rescue/zstdcat
/rescue/zstdmt
/sbin/rtsol
/usr/sbin/rtsold
/usr/src/sys/amd64/vmm/vmm.c
/usr/src/sys/conf/newvers.sh
/usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
/usr/src/usr.sbin/rtsold/rtsol.c
Installing updates... done.
15.0-RELEASE-p1



infoomatic

unread,
Dec 18, 2025, 4:08:11 AM (23 hours ago) Dec 18
to ques...@freebsd.org
Reply all
Reply to author
Forward
0 new messages