summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2021-08-13 09:59:32 +0800
committerEryu Guan <guaneryu@gmail.com>2021-08-15 23:51:19 +0800
commit705b0e60bcb7f9f27ed851fa2fb00abf06575022 (patch)
treefd58918ab690ee24f797316a1f2d46d2b3601f71 /common
parentca71bde9fd8b0dfbda79f92b6fe5d8c3889b4691 (diff)
common/rc: debug add _scratch_mount_options to the _scratch_mount
When the _scratch_mount fails, there isn't any clue on why it failed as of now, change this and add the $(_scratch_mount_options $*) to the _fail. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'common')
-rw-r--r--common/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rc b/common/rc
index 7b80820f..84757fc1 100644
--- a/common/rc
+++ b/common/rc
@@ -339,7 +339,7 @@ _try_scratch_mount()
# mount scratch device with given options and _fail if mount fails
_scratch_mount()
{
- _try_scratch_mount $* || _fail "mount failed"
+ _try_scratch_mount $* || _fail "mount $(_scratch_mount_options $*) failed"
}
_scratch_mount_idmapped()