1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

test: ignore modprobe failure

If the system doesn't have modprobe but happens to have modules
loaded, allow version testing.
This commit is contained in:
Zdenek Kabelac 2012-10-09 10:37:37 +02:00
parent 9ff2f1a3db
commit f0d34f383d

View File

@ -506,7 +506,7 @@ wait_for_sync() {
target_at_least() target_at_least()
{ {
case "$1" in case "$1" in
dm-*) modprobe "$1" ;; dm-*) modprobe "$1" || true ;;
esac esac
local version=$(dmsetup targets 2>/dev/null | grep "${1##dm-} " 2>/dev/null) local version=$(dmsetup targets 2>/dev/null | grep "${1##dm-} " 2>/dev/null)