Since the pkg_postinst is prior than alsa-state-init, it needs to run store first. On raspberry pi 4 boards, it failed to online install alsa-state
[raspberry pi 4] root@bcm-2xxx-rpi4:~# # dnf install alsa-state No state is present for card Headphones alsa-lib ../../../alsa-lib-1.2.3.2/src/ucm/main.c:983:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2 Found hardware: "bcm2835_headpho" "Broadcom Mixer" "" "" "" Hardware is initialized using a generic method No state is present for card Headphones %post(alsa-state-0.2.0-r5.0.cortexa72): waitpid(823) rc 823 status 6300 warning: %post(alsa-state-0.2.0-r5.0.cortexa72) scriptlet failed, exit status 99 Error in POSTIN scriptlet in rpm package alsa-state [raspberry pi 4] No regression on qemuxxx bsp Signed-off-by: Hongxu Jia <[email protected]> --- meta/recipes-bsp/alsa-state/alsa-state.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-bsp/alsa-state/alsa-state.bb b/meta/recipes-bsp/alsa-state/alsa-state.bb index cec2272c80..98a9381b4c 100644 --- a/meta/recipes-bsp/alsa-state/alsa-state.bb +++ b/meta/recipes-bsp/alsa-state/alsa-state.bb @@ -62,7 +62,7 @@ pkg_postinst_${PN}() { then if test -x ${sbindir}/alsactl then - ${sbindir}/alsactl -g -f ${localstatedir}/lib/alsa/asound.state restore + ${sbindir}/alsactl -g -f ${localstatedir}/lib/alsa/asound.state store fi fi } -- 2.21.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#142769): https://lists.openembedded.org/g/openembedded-core/message/142769 Mute This Topic: https://lists.openembedded.org/mt/77074619/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
