Skip to content

Commit 17f979f

Browse files
authored
feat: mount /dev/snd/by-id in python container (#119)
1 parent 3687b09 commit 17f979f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

internal/orchestrator/provision.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,16 @@ func generateMainComposeFile(
335335
})
336336
}
337337
}
338+
if devices.hasSoundDevice {
339+
// If we are adding sound devices, mount also /dev/snd/by-id if it exists to allow access to by-id links
340+
if paths.New("/dev/snd/by-id").Exist() {
341+
volumes = append(volumes, volume{
342+
Type: "bind",
343+
Source: "/dev/snd/by-id",
344+
Target: "/dev/snd/by-id",
345+
})
346+
}
347+
}
338348

339349
volumes = addLedControl(volumes)
340350

0 commit comments

Comments
 (0)