]> code.ossystems Code Review - openembedded-core.git/commit
alsa-state: ignore 'No soundcards found' error in pkg_postinst
authorYi Zhao <yi.zhao@windriver.com>
Fri, 17 Apr 2020 10:15:27 +0000 (18:15 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Apr 2020 13:06:48 +0000 (14:06 +0100)
commit100fce2a65582b9032cb9412fbe8ca572a0549b1
tree6e63f09eb27d716482d2bee851c698f32c5d1a66
parente5d3a6b2fb1fad62dec6389b16fec258df0b573d
alsa-state: ignore 'No soundcards found' error in pkg_postinst

If there is no soundcards on the target (e.g. qemu), the pkp_postinst
function will report an error:
  alsactl: load_state:1735: No soundcards found...
  pkg_run_script: package "alsa-state" postinst script returned status 19.
  opkg_configure: alsa-state.postinst returned 19.

Pass '-g' option to alsactl to ignore this error.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/alsa-state/alsa-state.bb