From owner-freebsd-questions@FreeBSD.ORG Sun Oct 4 14:31:21 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3508C106566B for ; Sun, 4 Oct 2009 14:31:21 +0000 (UTC) (envelope-from herbert.raimund@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 96C5B8FC13 for ; Sun, 4 Oct 2009 14:31:20 +0000 (UTC) Received: (qmail invoked by alias); 04 Oct 2009 14:31:18 -0000 Received: from host-194126238033.net-serwis.pl (EHLO localhost) [194.126.238.33] by mail.gmx.net (mp070) with SMTP; 04 Oct 2009 16:31:18 +0200 X-Authenticated: #18511094 X-Provags-ID: V01U2FsdGVkX19JA9FljXVJrxa/BEfXGhFoPTrDFmZDAEXFnu29UG xj++pHycKZ3Uro Date: Sun, 4 Oct 2009 16:29:08 +0200 From: herbert langhans To: andrew clarke , freebsd-questions@freebsd.org Message-ID: <20091004142908.GA18329@sandcat> References: <20091004131504.GB1406@sandcat> <20091004133737.GA63827@ozzmosis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091004133737.GA63827@ozzmosis.com> User-Agent: Mutt/1.4.2.3i X-Y-GMX-Trusted: 0 X-FuHaFi: 0.52 Cc: Subject: Re: Deleting the kernel source - just with #rm? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2009 14:31:21 -0000 Thank you, Andrew, clicketyclick - all source code gone now, and the config file is saved. Can you please tell me about the issue with freebsd-update. Does it mean if I run: #freebsd-update fetch #freebsd-update install - it will overwrite my self compiled kernel? Good to know indeed! Cheers herb langhans On Mon, Oct 05, 2009 at 12:37:37AM +1100, andrew clarke wrote: > On Sun 2009-10-04 15:15:05 UTC+0200, herbert langhans (herbert.raimund@gmx.net) wrote: > > > I just compiled a nice, slim kernel on my laptop, but I dont want to > > carry all the kernel sources around there. > > > > Is it ok just to #rm the content of the /usr/src directory? And will I > > get it completely back from sysinstall or the FreeBSD-servers? Or is > > there a more elegant solution on FreeBSD? > > This should be fine. > > Since you've built a custom kernel you may want to keep a copy of > your kernel build config ("LINT") file, eg. /usr/src/sys/i386/conf/HOSTNAME. > > Note that you can't use freebsd-update to patch a custom (non-GENERIC) > kernel. > > You can restore the kernel source code by extracting the ssys.?? > binaries (normally found in the /src/ directory, eg. > ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.2-RELEASE/src/ ) > using install.sh (found in the same directory). Probably also with > sysinstall, but I don't recall the steps to do that. > > Regards > Andrew > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- sprachtraining langhans herbert langhans, warschau http://www.langhans.com.pl herbert dot raimund at gmx dot net +0048 603 341 441