From 8d3cea1980520e1f5ac072c80d6588f328da1c09 Mon Sep 17 00:00:00 2001 From: Thomas Gazagnaire Date: Fri, 31 Mar 2017 19:00:25 +0200 Subject: [PATCH] miragesdk: do not use inotify in the privileged container The inotify bindings that we are using is a bit sensitive to init conditions, and it seems to not like being run inside in a container. See https://github.com/samoht/irmin-watcher/issues/10 Signed-off-by: Thomas Gazagnaire --- projects/miragesdk/src/sdk/ctl.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/miragesdk/src/sdk/ctl.ml b/projects/miragesdk/src/sdk/ctl.ml index 7b092ff4d..d097664bd 100644 --- a/projects/miragesdk/src/sdk/ctl.ml +++ b/projects/miragesdk/src/sdk/ctl.ml @@ -27,7 +27,10 @@ let v path = KV.of_branch repo "calf" let () = - Irmin.Private.Watch.set_listen_dir_hook Irmin_watcher.hook + Irmin.Private.Watch.set_listen_dir_hook + (fun _ _ _ -> Lwt.return (fun () -> Lwt.return_unit)) + (* FIXME: inotify need some unknown massaging. *) + (* Irmin_watcher.hook *) module Query = struct