From 392cb1e9950c2f9380b508d59dcd3a51ef221167 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Thu, 27 Nov 2025 17:15:18 +0100 Subject: [PATCH] Add by-id folder view --- internal/orchestrator/provision.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/orchestrator/provision.go b/internal/orchestrator/provision.go index c5ab52b6..eae5a380 100644 --- a/internal/orchestrator/provision.go +++ b/internal/orchestrator/provision.go @@ -335,6 +335,16 @@ func generateMainComposeFile( }) } } + if devices.hasSoundDevice { + // If we are adding sound devices, mount also /dev/snd/by-id if it exists to allow access to by-id links + if paths.New("/dev/snd/by-id").Exist() { + volumes = append(volumes, volume{ + Type: "bind", + Source: "/dev/snd/by-id", + Target: "/dev/snd/by-id", + }) + } + } volumes = addLedControl(volumes)