summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorHou Tao <houtao1@huawei.com>2018-12-29 10:34:48 +0800
committerEryu Guan <guaneryu@gmail.com>2018-12-29 15:50:55 +0800
commit3f95ea9fb3fd0c10330c4bd19f5c31f6cea42069 (patch)
tree80213b2ca366d2fb9f0d7720e8ab30cee033b80f /check
parentdeab8ca02e369a50caabd93f8407078aeba1331e (diff)
check: use _try_scratch_mount instead of _scratch_mount to mount SCRATCH_DEV
Else there won't be any error messages when mounting SCRATCH_DEV failed, because _scratch_mount exits early by invoking _fail. Signed-off-by: Hou Tao <houtao1@huawei.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'check')
-rwxr-xr-xcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/check b/check
index e85f40ac..e4d76737 100755
--- a/check
+++ b/check
@@ -607,7 +607,7 @@ for section in $HOST_OPTIONS_SECTIONS; do
# call the overridden mount - make sure the FS mounts with
# the same options that we'll mount with later.
- if ! _scratch_mount >$tmp.err 2>&1
+ if ! _try_scratch_mount >$tmp.err 2>&1
then
echo "our local mount routine ..."
cat $tmp.err