Add inhibit job for cros-disks in test image

We want auto-mount disabled in factory test image so that it will not
confuse our test programs.

BUG=chrome-os-partner:24798
TEST=Boot factory test image and verify cros-disks is inhibited.

Change-Id: Iebcffab66e0a0f568f8cdef84cfbe5ad80c574bc
Reviewed-on: https://chromium-review.googlesource.com/206628
Reviewed-by: Vic Yang <victoryang@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Commit-Queue: Ricky Liang <jcliang@chromium.org>
Tested-by: Ricky Liang <jcliang@chromium.org>
diff --git a/test-init/inhibit-cros-disks.conf b/test-init/inhibit-cros-disks.conf
new file mode 100644
index 0000000..bed17fb
--- /dev/null
+++ b/test-init/inhibit-cros-disks.conf
@@ -0,0 +1,20 @@
+# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description   "Inhibit cros-disks for factory testing"
+author        "chromium-os-dev@chromium.org"
+
+start on starting cros-disks
+stop on stopped cros-disks
+
+# To start cros-disks regardless of the presence of factory enabled
+# tag, do:
+#   $ start inhibit-cros-disks disable_inhibit=1
+#   $ start cros-disks
+env disable_inhibit=0
+
+pre-start script
+  . /usr/share/cros/factory_utils.sh
+  inhibit_if_factory_mode cros-disks
+end script