Bug 4231

Summary: Wrong postinst logs with run-postinsts script
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: coreAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: ke.zou, laurentiu.palcu, meta.mr.watcher, meta.watcher, ning.zhang, Qi.Chen, sgw
Version: 1.4   
Target Milestone: 1.4 M6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Yi Zhao 2013-04-09 08:08:16 UTC
Branch: poky/master
Git rev: 4da406cd50cf02a63ed76810a670aba1eb561c79

For a sato-sdk image, the opkg would also be installed even if the package format is rpm. It will choose the incorrect package management command in S98run-postinsts: 
###############
$ cat /etc/rcS.d/S98run-postinsts
#!/bin/sh
opkg-cl configure >/var/log/postinstall.log 2>&1
rm -f //etc/rcS.d/S98run-postinsts
###############