diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-07-19 17:39:27 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-07-26 00:07:43 -0700 |
commit | d60926b3fc4ba5780aef5b5226d05170892a7133 (patch) | |
tree | 4f77529de0d2c8ad40085712afe14a35810c5c22 /meta/recipes-devtools | |
parent | ca32f9c3f7749aa31d1ea83eda1ca39a2678215b (diff) | |
download | openembedded-core-d60926b3fc4ba5780aef5b5226d05170892a7133.tar.gz openembedded-core-d60926b3fc4ba5780aef5b5226d05170892a7133.tar.bz2 openembedded-core-d60926b3fc4ba5780aef5b5226d05170892a7133.zip |
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.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools')
-rwxr-xr-x | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 2 |
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 for i in `ls $pi_dir`; do i=$pi_dir/$i echo "Running postinst $i..." + [ "$POSTINST_LOGGING" = "1" ] && echo "Running postinst $i..." >> $LOGFILE if [ -x $i ]; then if [ "$POSTINST_LOGGING" = "1" ]; then sh -c $i >>$LOGFILE 2>&1 @@ -33,6 +34,7 @@ for i in `ls $pi_dir`; do rm $i else echo "ERROR: postinst $i failed." + [ "$POSTINST_LOGGING" = "1" ] && echo "ERROR: postinst $i failed." >> $LOGFILE remove_pi_dir=0 fi done |