mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 2/3] defaultenv-2: introduce /env/rc.d
Date: Tue, 13 Jan 2015 16:29:51 +0800	[thread overview]
Message-ID: <80FED513-D72C-4527-A51C-687BF4A89D35@jcrosoft.com> (raw)
In-Reply-To: <20150113082546.GC23940@pengutronix.de>


> On Jan 13, 2015, at 4:25 PM, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> 
> On Tue, Jan 13, 2015 at 07:21:09AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
>> as we now will use symlink on /env/rc.d to specify init order
>> 
>> the script will be store in /env/init
>> 
>> so any board can overwrite them or add script that need to run before a
>> default one
> 
> Boards can overwrite scripts without links. Numbering the files seems
> good because it makes the execution order more predictable and easier to
> put a script between two other scripts.
> 
> But why links? On Linux PCs this allows to separate distribution
> provided scripts from their actual (site specific) execution. Also
> the same scripts can be executed from different runlevels.
> On barebox I see no good reason for links. There is only one runlevel
> in barebox and if I don't want to execute a script I can just remove it.
> 

Runtime change

I’ve a board where I need to change the init order based on the board revision

so the symlink allow this

and this will allow also to have the same script at different order based on the board
requirement.

Best Regards,
J.

> Sascha
> 
> 
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2015-01-13  8:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13  6:19 [PATCH 0/3] defaultenv2: introduce init order Jean-Christophe PLAGNIOL-VILLARD
2015-01-13  6:21 ` [PATCH 1/3] defaultenv-2: fix misplace NV dir in env Jean-Christophe PLAGNIOL-VILLARD
2015-01-13  6:21   ` [PATCH 2/3] defaultenv-2: introduce /env/rc.d Jean-Christophe PLAGNIOL-VILLARD
2015-01-13  8:25     ` Sascha Hauer
2015-01-13  8:29       ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2015-01-13  9:12         ` Jan Lübbe
2015-01-13  9:22           ` Jean-Christophe PLAGNIOL-VILLARD
2015-01-13  6:21   ` [PATCH 3/3] defaultenv-2: create a specific defaultenv for splash Jean-Christophe PLAGNIOL-VILLARD
2015-01-13  8:11   ` [PATCH 1/3] defaultenv-2: fix misplace NV dir in env Sascha Hauer

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=80FED513-D72C-4527-A51C-687BF4A89D35@jcrosoft.com \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /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