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 1PDEkp-000483-7h for garchives@archives.gentoo.org; Tue, 02 Nov 2010 11:10:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 596D6E08F6 for ; Tue, 2 Nov 2010 11:10:11 +0000 (UTC) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by pigeon.gentoo.org (Postfix) with ESMTP id F1C21E075E for ; Tue, 2 Nov 2010 10:45:41 +0000 (UTC) Received: by eyb6 with SMTP id 6so2546371eyb.40 for ; Tue, 02 Nov 2010 03:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=EUpKrzEr15tKGxHz5X9cNQPTIl6HLCn9EQX6gpyJi8A=; b=mTI7rL30ax5fbrxQKRBSKuSmCX0FHrQ3QN1NKpDbf6uSqb17xXNmDThJGuLLkMexfr myfP8STNGIDCcRo7fcJcAaCe2VFBuj1mFuQ6Cp19Ddr0UC88y0PH9GJxmNlor+AQRVv9 z6lPVpPa4V6m3t5ho1gq707DoHLk53h4YV+5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=loGPZouuaOGrM20y0RlC0i8uNMaTVccSBKS2Qs8Uxc4vJCCTtwIG+lqSlqeQNEqV8e RxD+NXNjU4+qKhnQgt3drqKJ7WIuVLb3vpI+KDMRy71Nj/u8j308XRM+wf+ySoFw+Lxl FBYCIZBtmNw+ljTE9vHWP8ecK5TuI1uNWfJdk= Received: by 10.213.13.74 with SMTP id b10mr2808893eba.17.1288694741428; Tue, 02 Nov 2010 03:45:41 -0700 (PDT) Received: from nazgul.localnet (dustpuppy.is.co.za [196.14.169.11]) by mx.google.com with ESMTPS id v56sm5259171eeh.20.2010.11.02.03.45.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Nov 2010 03:45:40 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] world symlinking Date: Tue, 2 Nov 2010 12:46:15 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.36-ck; KDE/4.5.2; x86_64; ; ) Cc: Gary Golden References: <4CCF519A.6060500@garygolden.me> <4CCFDFC5.3020302@garygolden.me> In-Reply-To: <4CCFDFC5.3020302@garygolden.me> 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 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201011021246.15254.alan.mckinnon@gmail.com> X-Archives-Salt: 00c1c689-a38d-4933-bc7e-ab4ca81e76f2 X-Archives-Hash: 17e0679d2a76e85a3ee7d49497464fd8 Apparently, though unproven, at 11:54 on Tuesday 02 November 2010, Gary Golden did opine thusly: > 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. hard links will only work if /etc/portage and /var/lib/portage are on the same filesystem. Frequently, they are not. -- alan dot mckinnon at gmail dot com