浏览代码

move xino stuff to /dev/shm

Victor Vieux 12 年之前
父节点
当前提交
f67ea78cce
共有 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 += ",xino=/dev/shm/aufs.xino"
+
 	//if error, try to load aufs kernel module
 	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...")