Upgrading a chroot

Hello,

I have a chroot running 12.4-RELEASE that I use to PXE boot some nodes of a tiny cluster. I want to upgrade it to run 13.2-RELEASE, same as the host machine. I thought I could chroot and do:
Code:
freebsd-update -r 13.2-RELEASE upgrade
, but the response is:
Code:
freebsd-update: Cannot upgrade from 13.2-RELEASE to itself
. I know the chroot runs 12.4-RELEASE.

I'm not sure how to proceed.

Thanks for any help.
sprock
 
I want to upgrade it to run 13.2-RELEASE
13.2-RELEASE will be end-of-life in a few months (around June 5 2024) , better upgrade to 13.3 or 14.0 (host machine must run in this case same or bigger version).

Try freebsd-update --currently-running:

freebsd-update(8)
Code:
     --currently-running release
                    Do not detect the currently-running release; instead,
                    assume that the system is running the specified release.
                    This is most likely to be useful when upgrading jails.

Or
Code:
     -j jail        Operate on the given jail specified by jid or name.  (The
                    version of the installed userland is detected and the
                    --currently-running option is no more required.)
 
Have you tried from the host system with -b instead?
Code:
# freebsd-update -b <chroot-dir> fetch install

EDIT> ... aaand I didn't read this right. You want to upgrade. Well, you could still try -b but you need your -r ... upgrade too...
 
I tried --currently-running (it is a chroot, not a jail):
Code:
ata 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.2-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 12.4-RELEASE for merging... done.
Preparing to download files... done.
Fetching 9846 patches. done.
Applying patches... done.
Fetching 10074 files...  done.
Attempting to automatically merge changes in files... done.

The following file could not be merged automatically: /etc/group
Press Enter to edit this file in vi and resolve the conflicts
manually...
/usr/sbin/freebsd-update: cannot open /dev/tty: No such file or directory
/usr/sbin/freebsd-update: cannot open /dev/tty: No such file or directory

The following changes, which occurred between FreeBSD 12.4-RELEASE and
FreeBSD 13.2-RELEASE have been merged into /etc/group:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: releng/12.4/etc/group 359447 2020-03-30 17:07:05Z brooks $
+# $FreeBSD$
 #
 wheel:*:0:root,rmason
 daemon:*:1:
 kmem:*:2:
 sys:*:3:
@@ -15,13 +15,19 @@
 staff:*:20:
 sshd:*:22:
 smmsp:*:25:
 mailnull:*:26:
 guest:*:31:
+<<<<<<< current version
 video:*:44:rmason
 realtime:*:47:
 idletime:*:48:
+=======
+video:*:44:
+realtime:*:47:
+idletime:*:48:
+>>>>>>> 13.2-RELEASE
 bind:*:53:
 unbound:*:59:
 proxy:*:62:
 authpf:*:63:
 _pflogd:*:64:
/usr/sbin/freebsd-update: cannot open /dev/tty: No such file or directory

Thanks again.
 
Back
Top