All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonas Eriksson <jonas.eriksson@enea.com>
To: Andrea Adami <andrea.adami@gmail.com>
Cc: Josep Puigdemont <josep.puigdemont@enea.com>,
	openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] cpio rootfs build: Avoid modifying rootfs dir
Date: Wed, 26 Mar 2014 08:29:00 +0100	[thread overview]
Message-ID: <20140326072900.GF5752@enea.com> (raw)
In-Reply-To: <CAAQYJAvbzVjJkKQ+xZkwMBXtvWQZR-XYnG1Fn56Euj-Dih8_Ow@mail.gmail.com>

Hi Andrea,

On Wed, Mar 26, 2014 at 00:04:55 +0100 Andrea Adami wrote:
> I admit I did not encounter this race, still I tested the patch
> because it caught my attention.
> 
> There are some rare cases where init is a symlink pointing to a custom
> executable so the previous test was specifically done in order to
> avoid to touch a symlink.

Yes, that makes sense. It's however a bit problematic to alter
the rootfs directory after the do_rootfs has finished executing.
This is why the ./init append was moved to work with a separate
directory.

To clarify around the symlink situation: The patch moves from a
-L to a -e to make sure that we don't append the ./init to the
cpio if there is any kind of ./init in the rootfs directory, be
it a file or a symlink.

> I was initially afraid of the change but actually the test is done
> after the creation of the cpio so this patch doesn't seem to break our
> special case.
> 
> Acked-by: Andrea Adami <andrea.adami@gmail.com>

Thanks for the feedback and Ack!

/Jonas


      reply	other threads:[~2014-03-26  7:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-24 15:56 [PATCH] Fix "tar: .: file changed as we read it" with cpio+tar builds enabled Jonas Eriksson
2014-03-24 15:56 ` [PATCH] cpio rootfs build: Avoid modifying rootfs dir Jonas Eriksson
2014-03-25 23:04   ` Andrea Adami
2014-03-26  7:29     ` Jonas Eriksson [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=20140326072900.GF5752@enea.com \
    --to=jonas.eriksson@enea.com \
    --cc=andrea.adami@gmail.com \
    --cc=josep.puigdemont@enea.com \
    --cc=openembedded-core@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.