Date: Sun, 27 Feb 2011 10:13:05 -0500 From: Michael Butler <imb@protected-networks.net> To: Dan Naumov <dan.naumov@gmail.com> Cc: freebsd-stable@freebsd.org, freebsd-questions@freebsd.org Subject: Re: using freebsd-update to update jails and their host Message-ID: <4D6A6A01.4090104@protected-networks.net> In-Reply-To: <4D6A6774.70108@protected-networks.net> References: <AANLkTi=mdF1ZGpgt0ogbH_kEsCzP8587y23nBBDLCSS7@mail.gmail.com> <4D6A6774.70108@protected-networks.net>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Apologies .. correcting myself here .. > .. to update the binaries after a full update of the host system and > something like .. > > #!/bin/sh > for JAIL in {list-your-jails-here} > do > mv /usr/src /usr/local/jails/${JAIL}/usr > JAIL_ID=`jls | grep $JAIL | awk '{ print $1 };'` > echo "Updating: ${JAIL}" > jexec ${JAIL_ID} mergemaster -scvi > mv /usr/local/jails/${JAIL}/usr/src /usr > done This should, of course, be .. #!/bin/sh rmdir /usr/local/jails/basejail/usr/src mv /usr/src /usr/local/jails/basejail/usr/src for JAIL in {list-your-jails-here} do JAIL_ID=`jls | grep $JAIL | awk '{ print $1 };'` echo "Updating: ${JAIL}" jexec ${JAIL_ID} mergemaster -scvi done mv /usr/local/jails/basejail/usr/src /usr mkdir /usr/local/jails/basejail/usr/src imb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk1qagEACgkQQv9rrgRC1JJVdwCfWeTcTSheVvMDFDLMfZj/56he ZUcAoLwiSObA6UmCmALfiFK/tJaVyj8+ =1pnX -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D6A6A01.4090104>