Upgrade Jail release version?

Joined
Jun 24, 2017
Messages
338
Is it possible to update the release version that a jail is based on? (Specifically from 11.3 to 12.0 so that it can continue to have security patches and whatnot applied?)

And if so... how?
 

deastick

Dabbler
Joined
Dec 27, 2013
Messages
26
the command you want is "iocage fetch" and "iocage upgrade". check the man pages and search forums. Memory tells me something like "iocage upgrade -r 12.2-RELEASE jailname"

Those commands are from the main Shell (ie system root on your TrueNAS).
 
Joined
Jun 24, 2017
Messages
338
the command you want is "iocage fetch" and "iocage upgrade". check the man pages and search forums. Memory tells me something like "iocage upgrade -r 12.2-RELEASE jailname"

Those commands are from the main Shell (ie system root on your TrueNAS).
im currently trying a pkg update/pkg upgrade from in the jail shell
(I caught the recommendation buried somewhere in the forums for someone going from 11.1 to 11.2 or something)
 

blanchet

Guru
Joined
Apr 17, 2018
Messages
516
If you wish to keep the possibility to downgrade to FreeNAS-11.3u5, you can upgrade to 11.4-RELEASE which is still supported by the FreeBSD project and compatible with both FreeNAS-11.3u5 and TrueNAS-12.0.

Code:
JAILNAME=yourjailname
RELEASE=11.4-RELEASE
iocage snapshot -n before-$RELEASE  $JAILNAME
iocage upgrade -r $RELEASE  $JAILNAME
iocage pkg $JAILNAME update
iocage pkg $JAILNAME upgrade -y
iocage restart $JAILNAME


When everything is ok, destroy the snapshot
Code:
iocage snapremove -n before-$RELEASE  $JAILNAME
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
im currently trying a pkg update/pkg upgrade from in the jail shell
(I caught the recommendation buried somewhere in the forums for someone going from 11.1 to 11.2 or something)
That just updates/upgrades the installed packages, not the OS.
You should upgrade the jail first via iocage then do the packages afterwards.
 
Top