Date: Tue, 17 Jul 2001 10:34:33 -0700 From: PM Lashley <patl@phoenix.volant.org> To: Alexey Zakirov <frank@agava.com> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: jail Message-ID: <552500000.995391273@asimov> In-Reply-To: <Pine.BSF.4.32.0107172052310.78380-100000@hellbell.domain> References: <Pine.BSF.4.32.0107172052310.78380-100000@hellbell.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
--==========553337516========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On Tuesday, July 17, 2001 20:54:29 +0400 Alexey Zakirov <frank@agava.com> = wrote: > On Tue, 17 Jul 2001, alexus wrote: > >> make buildworld >> >> isn't this will upgrade my 4.3R to 5.0C? > > it just build a new system (not install it). > > So I'm use a following script to update my jails: > > make hierarchy DESTDIR=3D$INSTALLATION_PATH > make install DESTDIR=3D$INSTALLATION_PATH > cd $INSTALLATION_PATH > rm -rf boot dev lkm mnt modules proc root sys > cat $WORK/delete.lst | xargs chflags 0 > cat $WORK/delete.lst | xargs rm -rf > cat $WORK/noworld.lst | xargs chflags 0 > cat $WORK/noworld.lst | xargs chmod o-rwx > cat $WORK/nosuid.lst | xargs chflags 0 > cat $WORK/nosuid.lst | xargs chmod ug-s So exactly which files do you have listed in each of the '.lst' files? Also, a nit - I'd like to point out that the above six lines would be more=20 efficient using redirection instead of cat and pipes. E.g., xargs chflags 0 < $WORK/delete.lst xargs rm -rf < $WORK/delete.lst etc. -Pat --==========553337516========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjtUdyoACgkQncYNbLD8wuOM2QCg5kyc/BgSa6/w0nYFhw8OqnFy MhgAoIDz5zjYpR1PXr5urz6SlkazFogw =rI2a -----END PGP SIGNATURE----- --==========553337516==========-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?552500000.995391273>