Skip to content

Commit

Permalink
ci: load kernel modules uio_pci_generic and nvme-tcp
Browse files Browse the repository at this point in the history
Longhorn 7985

Signed-off-by: Derek Su <[email protected]>
  • Loading branch information
derekbit committed Mar 27, 2024
1 parent c0ac4cb commit 22b71b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ then
exit 1
fi

modules=("uio_pci_generic" "nvme-tcp")

for module in "${modules[@]}"
do
if ! modprobe "$module"; then
echo "Failed to load $module module"
exit 1
fi
done

mount --rbind /host/dev /dev
mount --rbind /host/sys /sys
trap "umount /dev && umount /sys" EXIT
Expand Down

0 comments on commit 22b71b7

Please sign in to comment.