Skip to content

Commit 392cb1e

Browse files
committed
Add by-id folder view
1 parent b6723a5 commit 392cb1e

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)