* post-installation scripts vs. init scripts
@ 2015-02-04 7:33 Peter Gejgus
2015-02-04 8:03 ` ChenQi
0 siblings, 1 reply; 2+ messages in thread
From: Peter Gejgus @ 2015-02-04 7:33 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: post-installation scripts vs. init scripts
2015-02-04 7:33 post-installation scripts vs. init scripts Peter Gejgus
@ 2015-02-04 8:03 ` ChenQi
0 siblings, 0 replies; 2+ messages in thread
From: ChenQi @ 2015-02-04 8:03 UTC (permalink / raw)
To: Peter Gejgus, openembedded-core@lists.openembedded.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-04 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-04 7:33 post-installation scripts vs. init scripts Peter Gejgus
2015-02-04 8:03 ` ChenQi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox