From owner-freebsd-questions Tue Oct 8 15: 3:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A1EC37B401 for ; Tue, 8 Oct 2002 15:03:44 -0700 (PDT) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73F9943E7B for ; Tue, 8 Oct 2002 15:03:42 -0700 (PDT) (envelope-from keramida@freebsd.org) Received: from hades.hell.gr (patr530-b226.otenet.gr [212.205.244.234]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id g98M3bbw021211 for ; Wed, 9 Oct 2002 01:03:39 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g98M3kUL086660 for ; Wed, 9 Oct 2002 01:03:46 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g98Lubdt085949; Wed, 9 Oct 2002 00:56:37 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Wed, 9 Oct 2002 00:56:37 +0300 From: Giorgos Keramidas To: George Vagner Cc: questions@freebsd.org Subject: Re: make world script Message-ID: <20021008215637.GF83241@hades.hell.gr> References: <200210081551.51838.george@vagner.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200210081551.51838.george@vagner.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-10-08 15:51, George Vagner wrote: > I am looking for a script that I can run a cron on that will > update my sources and ports, build world, kernel and install everything > without touching my network settings so i can get back in later. I have a script in my crontab that does the following: * Create a lockfile to make sure that cron doesn't spawn the same script twice. * Check that a cvsup server is available. * Update /home/ncvs (a local CVS mirror). Find it at http://www.freebsd.org/~keramida/files/cvs-update You could probably tweak this to suit your needs, and then run a buildworld/buildkernel just before exiting. I don't recommend adding the proper shell commands to also installworld/installkernel automagically. This is asking for trouble, as someone else has already posted. The safest thing to do is probably to attempt an installworld in a "scratch area", like /usr/testworld and manually do a real installworld only if it succeeds. You could also hack something around the "make release" target, if you have enough disk space. More information on the release building process can be found at the following articles: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/ http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng-packages/ Giorgos. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message