Skip to content

Commit dccbdc9

Browse files
committed
debos: rootfs: Add debian to audio and render
These groups are useful when testion audio or GPU workloads when logged from the serial console, over SSH or from containers. Signed-off-by: Loïc Minier <[email protected]>
1 parent 5a829d2 commit dccbdc9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

debos-recipes/qualcomm-linux-debian-rootfs.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ actions:
8686
set -eux
8787
# pre-emptively create a sudo group if sudo isn't installed
8888
getent group sudo >/dev/null 2>&1 || groupadd --system sudo
89-
# some of these groups are only needed for desktop scenarios
89+
# some useful groups for desktop scenarios, but also to run payloads
90+
# from the serial console, over SSH, or in containers - where the desktop
91+
# session has not updated ACLs to the device nodes
9092
useradd --create-home --shell /bin/bash --user-group \
91-
--groups adm,video,users,sudo debian
93+
--groups adm,audio,render,sudo,users,video debian
9294
# password must be changed on first login; set it to "debian"
9395
chage --lastday 0 debian
9496
echo debian:debian | chpasswd
@@ -99,6 +101,7 @@ actions:
99101
umask 226
100102
echo "debian ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/90-debos
101103
)
104+
102105
# NB: Recommends pull in way too many packages, and we don't need to follow
103106
# Recommends reaching outside of this Priority level
104107
- action: apt

0 commit comments

Comments
 (0)