public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Cc: Gary Golden <mail@garygolden.me>
Subject: Re: [gentoo-user] world symlinking
Date: Tue, 2 Nov 2010 12:46:15 +0200	[thread overview]
Message-ID: <201011021246.15254.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <4CCFDFC5.3020302@garygolden.me>

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 <mail@garygolden.me>:
> >> 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



  reply	other threads:[~2010-11-02 11:10 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-01 23:47 [gentoo-user] world symlinking Gary Golden
2010-11-02  7:08 ` Daniel Pielmeier
2010-11-02  9:54   ` Gary Golden
2010-11-02 10:46     ` Alan McKinnon [this message]
2010-11-02 17:41       ` Stroller
2010-11-02 18:19         ` Volker Armin Hemmann
2010-11-02 18:29           ` Gary Golden
2010-11-02 18:32             ` Volker Armin Hemmann
2010-11-02 20:32           ` Alan McKinnon
2010-11-02 21:21             ` Volker Armin Hemmann
2010-11-02 22:05               ` Alan McKinnon
2010-11-02 22:49                 ` [gentoo-user] " walt
2010-11-03  1:15                   ` Alan McKinnon
2010-11-03  0:14                 ` [gentoo-user] " Peter Humphrey
2010-11-02 10:53     ` Coert Waagmeester
2010-11-02 10:46       ` Gary Golden
2010-11-02 22:21 ` [gentoo-user] " Francesco Talamona
2010-11-03  1:06   ` Alan McKinnon
2010-11-03  1:44     ` Dale
2010-11-04 10:21       ` [gentoo-user] usb error log spam alex
2010-11-04 11:32         ` Neil Bothwick
2010-11-04 12:53           ` alex
2010-11-04 13:31             ` Fatih Tümen
2010-11-04 14:24               ` alex
2010-11-04 21:52             ` Adam Carter
2010-11-05  2:43               ` Brennan Shacklett
2010-11-03  4:29   ` [gentoo-user] Re: world symlinking Kevin O'Gorman
2010-11-03 19:53     ` Francesco Talamona
2010-11-03 23:10       ` Dale
2010-11-04  0:32         ` Peter Humphrey
2010-11-04  2:10           ` Dale
2010-11-04  9:30           ` Neil Bothwick
2010-11-04 16:46             ` Peter Humphrey
2010-11-04 17:01               ` Alan McKinnon
2010-11-04 17:06                 ` Sebastian Beßler
2010-11-04 17:12                 ` Neil Bothwick
2010-11-04 18:35                 ` Peter Humphrey
2010-11-04 19:29                   ` Alan McKinnon
2010-11-04 17:04               ` Sebastian Beßler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201011021246.15254.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    --cc=mail@garygolden.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox