Bug 5719

Summary: systemd: run-postinsts.service not working correctly
Product: [Runtime] System Startup Reporter: Chen Qi <Qi.Chen>
Component: system-startupAssignee: Chen Qi <Qi.Chen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: kevin.tian, liezhi.yang, richard.purdie, sgw
Version: 1.5   
Target Milestone: 1.6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Chen Qi 2014-01-13 06:43:37 UTC
The run-postinsts.service is not working correctly, resulting in post-install scripts not running for rpm based images or ipk/deb based images which do not have package-management enabled.

To reproduce:
1. Choose systemd as the init manager
2. bitbake core-image-minimal (ensure at least one package has a post-install script running at system start-up)
3. runqemu

The problem is that there are two init scripts to deal with post-install scripts in our system. They are installed into /etc/rcS.d/S98run-postinsts and /etc/rcS.d/S99run-postinsts respectively. However, systemd only deals with the former.

//Chen Qi
Comment 1 Chen Qi 2014-02-10 05:40:13 UTC
Module: openembedded-core.git
Branch: master
Commit: 56490921d267b784118df43cbd107925c8b94200
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=56490921d267b784118df43cbd107925c8b94200

Module: openembedded-core.git
Branch: master
Commit: 5933fbef26ffbc8140248ffb28957f36a813054b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5933fbef26ffbc8140248ffb28957f36a813054b

Module: openembedded-core.git
Branch: master
Commit: 1e3ac15fcf502396f92c69788642a56064e22e35
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1e3ac15fcf502396f92c69788642a56064e22e35

Module: openembedded-core.git
Branch: master
Commit: 2c8dc1b00c0cf83da106ef9544cd11cde7ce43a1
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2c8dc1b00c0cf83da106ef9544cd11cde7ce43a1