Skip to content

Commit df4d872

Browse files
authored
Merge pull request #1327 from CarltonSemple/lxd-fix
Update devices_unix.go for LXD
2 parents 4815f67 + 0590736 commit df4d872

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcontainer/devices/devices_unix.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ func getDevices(path string) ([]*configs.Device, error) {
7575
switch {
7676
case f.IsDir():
7777
switch f.Name() {
78-
case "pts", "shm", "fd", "mqueue":
78+
// ".lxc" & ".lxd-mounts" added to address https://github.com/lxc/lxd/issues/2825
79+
case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts":
7980
continue
8081
default:
8182
sub, err := getDevices(filepath.Join(path, f.Name()))

0 commit comments

Comments
 (0)