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:
parent
9ff2f1a3db
commit
f0d34f383d
@ -506,7 +506,7 @@ wait_for_sync() {
|
||||
target_at_least()
|
||||
{
|
||||
case "$1" in
|
||||
dm-*) modprobe "$1" ;;
|
||||
dm-*) modprobe "$1" || true ;;
|
||||
esac
|
||||
|
||||
local version=$(dmsetup targets 2>/dev/null | grep "${1##dm-} " 2>/dev/null)
|
||||
|
Loading…
Reference in New Issue
Block a user