mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
tasks/nvme_loop: Don't modprobe if mod is loaded
Signed-off-by: Zack Cerza <zack@redhat.com>
This commit is contained in:
parent
82d3ec6a9a
commit
1c8e7007ce
@ -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}',
|
||||
|
Loading…
Reference in New Issue
Block a user