Message ID | b16ee3a4b85e6bed307f752e66c839b100df4744.1425007753.git.zhaolei@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/common/rc b/common/rc index 1ed9df5..23193c8 100644 --- a/common/rc +++ b/common/rc @@ -1288,7 +1288,7 @@ _require_block_device() echo "Usage: _require_block_device <dev>" 1>&2 exit 1 fi - if [ "`_is_block_dev $SCRATCH_DEV`" == "" ]; then + if [ "`_is_block_dev "$1"`" == "" ]; then _notrun "require $1 to be valid block disk" fi }