Openembedded Core Discussions
 help / color / mirror / Atom feed
From: ChenQi <Qi.Chen@windriver.com>
To: Peter Gejgus <Peter.Gejgus@kistler.com>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: post-installation scripts vs. init scripts
Date: Wed, 4 Feb 2015 16:03:54 +0800	[thread overview]
Message-ID: <54D1D26A.50909@windriver.com> (raw)
In-Reply-To: <672D6A2F0F2E8A43891580C45CE5D2E6013D7790@kihagwinex02.int.kistler.com>

In OE, sysvinit scripts are executed one by one at start-up.
The post-install scripts are run at first boot via 
/etc/rcS/S99run-postinsts.

E.g.
We have:
1) /etc/rc3/S10bind
2) /etc/rcS/S03udev
3) /etc/rcS/S99run-postinsts

The execution sequence is 2) -> 3) -> 1).

Regards,
Chen Qi

On 02/04/2015 03:33 PM, Peter Gejgus wrote:
> Hello,
>
> I've checked experimentally that post-installation scripts (executed during the first boot) run before init scripts. I've checked it by putting long sleep into the following script and I've also verified timestamps from init script and post-install script in the log:
>
> pkg_postinst_PACKAGENAME()
> {
>       #!/bin/sh -e
>       if [ x"$D" = "x" ]; then
>            # Actions to carry out on the device go here
>            sleep 300
>       else
>            exit 1
>       fi
>   }
>
> Can you confirm that post-install scripts run before init scripts and there is no overlap?
>
> Regards,
> Peter



      reply	other threads:[~2015-02-04  8:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-04  7:33 post-installation scripts vs. init scripts Peter Gejgus
2015-02-04  8:03 ` ChenQi [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=54D1D26A.50909@windriver.com \
    --to=qi.chen@windriver.com \
    --cc=Peter.Gejgus@kistler.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox