Add --use-blacklist to modprobe calls in modules and modules-load
This means that we will honor the modprobe black lists. X-Gentoo-Bug: 594012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=594012
This commit is contained in:
parent
d6c30ab12a
commit
bf73363f22
@ -54,7 +54,7 @@ load_modules()
|
|||||||
ebegin "Loading module $x"
|
ebegin "Loading module $x"
|
||||||
case "$RC_UNAME" in
|
case "$RC_UNAME" in
|
||||||
FreeBSD) kldload "$x"; rc=$? ;;
|
FreeBSD) kldload "$x"; rc=$? ;;
|
||||||
Linux) modprobe -q "$x"; rc=$? ;;
|
Linux) modprobe --use-blacklist -q "$x"; rc=$? ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
eend $rc "Failed to load $x"
|
eend $rc "Failed to load $x"
|
||||||
|
@ -75,7 +75,7 @@ Linux_modules()
|
|||||||
done
|
done
|
||||||
[ -z "$args" ] && eval args=\$module_${aa}_args
|
[ -z "$args" ] && eval args=\$module_${aa}_args
|
||||||
[ -z "$args" ] && eval args=\$module_${xx}_args
|
[ -z "$args" ] && eval args=\$module_${xx}_args
|
||||||
eval modprobe -q "$mpargs" "$x" "$args"
|
eval modprobe --use-blacklist -q "$mpargs" "$x" "$args"
|
||||||
eend $? "Failed to load $x" && : $(( cnt += 1 ))
|
eend $? "Failed to load $x" && : $(( cnt += 1 ))
|
||||||
done
|
done
|
||||||
einfo "Autoloaded $cnt module(s)"
|
einfo "Autoloaded $cnt module(s)"
|
||||||
|
Loading…
Reference in New Issue
Block a user