From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PDEnV-0004On-EJ for garchives@archives.gentoo.org; Tue, 02 Nov 2010 11:13:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 606BEE0866 for ; Tue, 2 Nov 2010 11:12:58 +0000 (UTC) Received: from mail.bushveldgrain.co.za (mail.bushveldgrain.co.za [196.25.181.10]) by pigeon.gentoo.org (Postfix) with ESMTP id 0070EE0777 for ; Tue, 2 Nov 2010 10:57:58 +0000 (UTC) Received: from localhost (mail.bushveldgrain.co.za [127.0.0.1]) by mail.bushveldgrain.co.za (Postfix) with ESMTP id 09A5E66157 for ; Tue, 2 Nov 2010 12:57:57 +0200 (SAST) X-Virus-Scanned: amavisd-new at example.com Received: from mail.bushveldgrain.co.za ([127.0.0.1]) by localhost (mail.bushveldgrain.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dbPXd2C2WWdt for ; Tue, 2 Nov 2010 12:57:55 +0200 (SAST) Received: from penguin.coert.local (unknown [196.1.1.163]) by mail.bushveldgrain.co.za (Postfix) with ESMTP id 6154066155 for ; Tue, 2 Nov 2010 12:53:19 +0200 (SAST) Message-ID: <4CCFED9F.1000702@waagmeester.co.za> Date: Tue, 02 Nov 2010 12:53:19 +0200 From: Coert Waagmeester User-Agent: Thunderbird 2.0.0.24 (X11/20100912) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] world symlinking References: <4CCF519A.6060500@garygolden.me> <4CCFDFC5.3020302@garygolden.me> In-Reply-To: <4CCFDFC5.3020302@garygolden.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: e55eb8a1-e7e8-4603-9440-57c5a0e0695f X-Archives-Hash: 018efad176c004a1b30b72c5fb072756 Gary Golden wrote: > On 11/02/2010 12:08 PM, Daniel Pielmeier wrote: >> 2010/11/2 Gary Golden : >>> Hi, list. >>> I keep changes of my /etc with git and I would like to include >>> /var/lib/portage/world file into the repository. >>> >>> Can I safely do: >>> >>> mv /var/lib/portage/world /etc/portage >>> ln -s /etc/portage /var/lib/portage/world >>> >>> Will portage update handle it properly? >>> Using hardlinks seems to be more cleaner way, but for some reason I >>> don't want to use it for this task. >> It should work. Just try it out, but make a copy of your world file >> before. Should be easy to switch back if anything fails. >> >> Afaik, the creation of the symbolic link should look like this: >> ln -s /etc/portage/world /var/lib/portage/world >> > > Thanks for the correction, you're right, of course. > Nevertheless, I've considered that using hardlinks is most porper way to > solve this task. It basically do what I need, make another reference to > the file under needed directory; without introducing compexity. > What about a bind mount? Rgds, Coert