From 3f95ea9fb3fd0c10330c4bd19f5c31f6cea42069 Mon Sep 17 00:00:00 2001 From: Hou Tao Date: Sat, 29 Dec 2018 10:34:48 +0800 Subject: [PATCH] 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 Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5