summaryrefslogtreecommitdiff
path: root/common.rc
diff options
context:
space:
mode:
Diffstat (limited to 'common.rc')
-rw-r--r--common.rc13
1 files changed, 13 insertions, 0 deletions
diff --git a/common.rc b/common.rc
index f5180fe4..ef41cbf6 100644
--- a/common.rc
+++ b/common.rc
@@ -1049,6 +1049,19 @@ _require_sparse_files()
esac
}
+_require_debugfs()
+{
+ #boot_params always present in debugfs
+ [ -d "$DEBUGFS_MNT/boot_params" ] || _notrun "Debugfs not mounted"
+}
+
+_require_fail_make_request()
+{
+ [ -f "$DEBUGFS_MNT/fail_make_request/probability" ] \
+ || _notrun "$DEBUGFS_MNT/fail_make_request \
+ not found. Seems that CONFIG_FAIL_MAKE_REQUEST kernel config option not enabled"
+}
+
# check that a FS on a device is mounted
# if so, return mount point
#