Solved I see the wrong release number when I update a jail via freebsd-update.

Hello.

Host system:
Code:
root@six:/usr/home/sailorsamoor # freebsd-version -kru
14.3-RELEASE-p3
14.3-RELEASE-p3
14.3-RELEASE-p4
root@six:/usr/home/sailorsamoor #
Jail system:
Code:
root@six:/usr/home/sailorsamoor # jexec data
root@data:/ # uname -a
FreeBSD data 14.3-RELEASE-p3 FreeBSD 14.3-RELEASE-p3 GENERIC amd64
root@data:/ #

When I try to update jail-system via freebsd-update, I see:
Code:
root@six:/usr/home/sailorsamoor # freebsd-update -j data fetch install
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 13.2-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 402 files... ^C
root@six:/usr/home/sailorsamoor #

Host system shows me 13.2-RELEASE. How can I indicate correctly right FreeBSD-RELEASE?
 
uname -a just prints information about your kernel.
freebsd-version -ru prints your running kernel as well as your userland version.

I guess your jail is simply out of date (13.2-RELEASE is the userland of your jail) whereas your host (kernel + userland) is up to date.
 
Google says: "
To fix data in a FreeBSD jail, first ensure the jail's data is correctly mounted, then check the jail's userland and kernel versions, as they may differ. If there's a version mismatch, you may need to create a new jail template or update packages within the jail, says a user on the FreeBSD forums. " ... Try to
Code:
file /bin/sh
to check the base version of the jail.
 
I did it:
Code:
freebsd-update -F -j data --currently-running 14.3 -r 13.2 upgrade
but the same:
Code:
root@six:~ # jexec data
root@data:/ # file /bin/sh
/bin/sh: ELF 64-bit LSB pie executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeB
SD 13.2, FreeBSD-style, stripped
root@data:/ #

P.S. I read the description incorrectly and substituted the parameters...
 
Back
Top