summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-07-19 17:39:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-29 13:09:00 +0100
commitaa7bc3caca1fbdc2f452f1d9871bb40847fb04d7 (patch)
treeaa4cf27c858035057fb6bce5fd5686019bc44856 /meta
parent49cd268c2215177b079a2c46f6fa919731a9e9a8 (diff)
downloadpoky-aa7bc3caca1fbdc2f452f1d9871bb40847fb04d7.tar.gz
run-postinsts: add more logging to the log file to make things clearer
When all postinsts scripts succeed at system startup, it's very possible that the log file /var/log/postinstall.log is empty. This is kind of confusing, as that file is supposed to hold information about the postinsts. Add more logging to the log file to make things clearer. (From OE-Core rev: d60926b3fc4ba5780aef5b5226d05170892a7133) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rwxr-xr-xmeta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
index 2a8d1d6e83..c94c3e92ec 100755
--- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
+++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
@@ -24,6 +24,7 @@ remove_pi_dir=1
24for i in `ls $pi_dir`; do 24for i in `ls $pi_dir`; do
25 i=$pi_dir/$i 25 i=$pi_dir/$i
26 echo "Running postinst $i..." 26 echo "Running postinst $i..."
27 [ "$POSTINST_LOGGING" = "1" ] && echo "Running postinst $i..." >> $LOGFILE
27 if [ -x $i ]; then 28 if [ -x $i ]; then
28 if [ "$POSTINST_LOGGING" = "1" ]; then 29 if [ "$POSTINST_LOGGING" = "1" ]; then
29 sh -c $i >>$LOGFILE 2>&1 30 sh -c $i >>$LOGFILE 2>&1
@@ -33,6 +34,7 @@ for i in `ls $pi_dir`; do
33 rm $i 34 rm $i
34 else 35 else
35 echo "ERROR: postinst $i failed." 36 echo "ERROR: postinst $i failed."
37 [ "$POSTINST_LOGGING" = "1" ] && echo "ERROR: postinst $i failed." >> $LOGFILE
36 remove_pi_dir=0 38 remove_pi_dir=0
37 fi 39 fi
38done 40done