multiple iocage upgrade speed-ups?

KenNashua

Explorer
Joined
Feb 24, 2012
Messages
62
I'm currently running TrueNas 12.2-U8 and have a number of iocage jails still running the 11.3 release. Upgrading each jail to 12.2 is VERY SLOW. Any way to speed this up? It seems like a large portion of the upgrade is downloading patches which would be nice if it could somehow be cached.

Thoughts?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
It won't help the overall time to do it, but a little bit of scripting would make it much less interactive:
Code:
for jail in foo bar baz; do
  iocage upgrade -r 12.2-RELEASE $jail
done
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
For some reason iocage thinks it's a good idea to keep a complete FreeBSD source tree inside each jail. rm -rf /usr/src inside the jail before upgrading speeds up the process significantly.
 
Top