]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
pulseaudio: Add audio group explicitly
authorKyungjik Min <dpmin7@gmail.com>
Tue, 2 Sep 2025 06:09:20 +0000 (15:09 +0900)
committerSteve Sakoman <steve@sakoman.com>
Tue, 2 Sep 2025 16:27:13 +0000 (09:27 -0700)
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.

Signed-off-by: Kyungjik Min <dpmin7@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta-selftest/files/static-group
meta/recipes-multimedia/pulseaudio/pulseaudio.inc

index f7a66de24de1e8a603032fde463472b1d4af38ec..c59f9e3019369d01552fd190481b2b14f2a0c47d 100644 (file)
@@ -27,3 +27,4 @@ render:x:527:
 sgx:x:528:
 ptest:x:529:
 xuser:x:530:
+audio:x:531:
index 1ab38315199fa749e5c93977d1a4c2bb2e96e73a..a93ef8f33834431e237decc3de0e0a365e30aa06 100644 (file)
@@ -146,7 +146,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"