소스 검색

Merge pull request #826 from dotcloud/825-move_xino_shm-fix

- Runtime: fix aufs mount on ubuntu13.04+btrfs
Guillaume J. Charmes 12 년 전
부모
커밋
0bc1c6d57a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      image.go

+ 2 - 0
image.go

@@ -126,6 +126,8 @@ func MountAUFS(ro []string, rw string, target string) error {
 	}
 	}
 	branches := fmt.Sprintf("br:%v:%v", rwBranch, roBranches)
 	branches := fmt.Sprintf("br:%v:%v", rwBranch, roBranches)
 
 
+	branches += ",xino=/dev/shm/aufs.xino"
+
 	//if error, try to load aufs kernel module
 	//if error, try to load aufs kernel module
 	if err := mount("none", target, "aufs", 0, branches); err != nil {
 	if err := mount("none", target, "aufs", 0, branches); err != nil {
 		log.Printf("Kernel does not support AUFS, trying to load the AUFS module with modprobe...")
 		log.Printf("Kernel does not support AUFS, trying to load the AUFS module with modprobe...")