Skip to content

Commit

Permalink
Merge pull request #1327 from CarltonSemple/lxd-fix
Browse files Browse the repository at this point in the history
Update devices_unix.go for LXD
  • Loading branch information
hqhq authored Mar 9, 2017
2 parents 4815f67 + 0590736 commit df4d872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcontainer/devices/devices_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ func getDevices(path string) ([]*configs.Device, error) {
switch {
case f.IsDir():
switch f.Name() {
case "pts", "shm", "fd", "mqueue":
// ".lxc" & ".lxd-mounts" added to address https://github.com/lxc/lxd/issues/2825
case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts":
continue
default:
sub, err := getDevices(filepath.Join(path, f.Name()))
Expand Down

0 comments on commit df4d872

Please sign in to comment.