Skip to contentSkip to conversation

pulseaudio: Add audio group explicitly

PATCH New Kyungjik Min 1 participant 1 message Sep 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pulseaudio: Add audio group explicitly

From: Kyungjik Min <[email protected]>

Since pulseaudio-server requires the audio group, we explicitly add it.

When use useradd-staticids or do not use the default group in base-passwd, an error will occur because the audio group is not defined.

NOTE: pulseaudio: Performing useradd with [--root TOPDIR/tmp/work/cortexa72-poky-linux/pulseaudio/17.0/recipe-sysroot --home-dir /var/run/pulse --gid 998 --groups audio,pulse --no-create-home --system --shell /bin/false --uid 998 pulse]
useradd: group 'audio' does not exist
ERROR: pulseaudio: useradd command did not succeed.

---
 meta-selftest/files/static-group                  | 1 +
 meta/recipes-multimedia/pulseaudio/pulseaudio.inc | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
meta-selftest/files/static-group +1 -0
index cbec6f1377..1744da6aad 100644
@@ -25,3 +25,4 @@ weston:x:525:
 wayland:x:526:
 render:x:527:
 sgx:x:528:
+audio:x:529:
meta/recipes-multimedia/pulseaudio/pulseaudio.inc +1 -1
index 61d5bb00ba..7b9d245c07 100644
@@ -147,7 +147,7 @@ do_install:append() {
 }
 
 USERADD_PACKAGES = "pulseaudio-server"
-GROUPADD_PARAM:pulseaudio-server = "--system pulse"
+GROUPADD_PARAM:pulseaudio-server = "--system audio; --system pulse"
 USERADD_PARAM:pulseaudio-server = "--system --home /var/run/pulse \
                               --no-create-home --shell /bin/false \
                               --groups audio,pulse --gid pulse pulse"