Use _have_driver instead of _have_modules in _have_nbd as nothing requires the nbd driver to be modular. Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- tests/nbd/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nbd/rc b/tests/nbd/rc index 9d0e3d1..118553c 100644 --- a/tests/nbd/rc +++ b/tests/nbd/rc @@ -7,11 +7,11 @@ . common/rc group_requires() { - _have_root && _have_nbd && modprobe nbd + _have_root && _have_nbd } _have_nbd() { - if ! _have_modules nbd; then + if ! _have_driver nbd; then return 1 fi if ! _have_program nbd-server; then -- 2.30.2