Alan McKinnon wrote: > On Sunday 12 April 2009 21:31:42 Joseph wrote: > > >> I would like to protect the current kernel as well, will statement in >> make.conf works? CONFIG_PROTECT="/usr/src/linux/*" >> >> I've not test it yet. >> > > No, that will not work as no existing files are being overwritten. > > To ensure that a kernel sources are never touched by --declean, add them to > world, as in > > emerge gentoo-sources-2.6.29 > > If it's already installed but not in world use -1 to tell portage not to go > through the install process, but just add it to world. Or just edit the world > file by hand. >
You sure about the -1 option? I thought that would emerge foo and not add foo to the world file which --depclean would certainly focus on. > Or you could just let --depclean remove it. Ask yourself this: Once you have > built a kernel, installed it, and built all the out-of-tree modules, how > often > do you go back and use those sources again? For most people the true answer > is > "very seldom, if ever". > > /usr/src tends to get very big very quick if not kept under control, each > version comes in at about 500M or so. That can fill /usr quite quickly. > > Just checking. Dale :-) :-)