scripts/ceph: load loop module explicitly

Older losetup versions loaded "loop" in background, but
with 2.36.1 this doesn't happen. We know we're going to
use this module so let's load it ourselves.

Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Change-Id: If3364e92817ae9f09e9897872bd61ca9167184a1
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7086
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Karol Latecki 2021-03-26 12:30:53 +01:00 committed by Jim Harris
parent a620cd198f
commit f88416a1de

View File

@ -15,6 +15,7 @@ mnt_dir=${base_dir}/mnt
image=/var/tmp/ceph_raw.img image=/var/tmp/ceph_raw.img
dev=/dev/loop200 dev=/dev/loop200
modprobe loop
umount ${dev}p2 || true umount ${dev}p2 || true
losetup -d $dev || true losetup -d $dev || true