public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Albert Hopkins <marduk@letterboxes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] messagebus keeps 0wning my files [SOLVED]
Date: Tue, 22 Jun 2010 22:41:09 -0400	[thread overview]
Message-ID: <1277260869.292607.32.camel@paska> (raw)
In-Reply-To: <1277246090.283505.20.camel@paska>

Well this was interesting...

One thing that mercurial does is if you clone a repo and the target
directory is on the same filesystem as the source, it create hardlinks
of files on the destination for efficiency.  Well this is fine, but...

One of the things my project does is create a virtual appliance of
itself, and how it does that is it creates a chroot, installs gentoo,
installs itself, and then copies the chroot to a disk image.  Well, this
happens on the same filesystem (as root) and in the appliance-making
process a user is created in the chroot and also the rep is cloned
inside the chroot and chowned to that user.  Well the first regular uid
is 1000 and since "hg clone" was making symlinks, my repo got ownership
changed to the user inside the chroot :|

So the fix is to use "hg clone" with the "--pull" option to prevent
mercurial from creating hard links.




      reply	other threads:[~2010-06-23  3:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-22 22:34 [gentoo-user] messagebus keeps 0wning my files Albert Hopkins
2010-06-23  2:41 ` Albert Hopkins [this message]

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=1277260869.292607.32.camel@paska \
    --to=marduk@letterboxes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /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