From owner-freebsd-isp Tue Jul 17 10:34:41 2001 Delivered-To: freebsd-isp@freebsd.org Received: from phoenix.volant.org (dickson.phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (Postfix) with ESMTP id D3AB137B401 for ; Tue, 17 Jul 2001 10:34:36 -0700 (PDT) (envelope-from patl@phoenix.volant.org) Received: from asimov.phoenix.volant.org ([205.179.79.65] helo=asimov) by phoenix.volant.org with esmtp (Exim 1.92 #8) id 15MYjz-0004aw-00; Tue, 17 Jul 2001 10:34:35 -0700 Date: Tue, 17 Jul 2001 10:34:33 -0700 From: PM Lashley To: Alexey Zakirov Cc: freebsd-isp@FreeBSD.ORG Subject: Re: jail Message-ID: <552500000.995391273@asimov> In-Reply-To: References: X-Mailer: Mulberry/2.1.0b2 (SunOS/SPARC Demo) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========553337516==========" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --==========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 = 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