tasks/nvme_loop: Don't modprobe if mod is loaded

Signed-off-by: Zack Cerza <zack@redhat.com>
This commit is contained in:
Zack Cerza 2022-08-01 14:35:37 -06:00
parent 82d3ec6a9a
commit 1c8e7007ce

View File

@ -23,6 +23,7 @@ def task(ctx, config):
base = '/sys/kernel/config/nvmet'
remote.run(
args=[
'grep', '^nvme_loop', '/proc/modules', run.Raw('||'),
'sudo', 'modprobe', 'nvme_loop',
run.Raw('&&'),
'sudo', 'mkdir', '-p', f'{base}/hosts/{host}',