Date: Mon, 5 Oct 2009 00:37:37 +1100 From: andrew clarke <mail@ozzmosis.com> To: herbert langhans <herbert.raimund@gmx.net> Cc: freebsd-questions@freebsd.org Subject: Re: Deleting the kernel source - just with #rm? Message-ID: <20091004133737.GA63827@ozzmosis.com> In-Reply-To: <20091004131504.GB1406@sandcat> References: <20091004131504.GB1406@sandcat>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091004133737.GA63827>