[OE-core] post-installation scripts vs. init scripts

ChenQi Qi.Chen at windriver.com
Wed Feb 4 08:03:54 UTC 2015


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




More information about the Openembedded-core mailing list