modprobe DIB_MODPROBE_BLACKLIST should be optional

modprobe element currently fails when DIB_MODPROBE_BLACKLIST is not set.
As there are now two methods to control blacklisting this should be optional.

Change-Id: Ibf3c31a95177ba88c1b93228490c7f36f5b70b57
This commit is contained in:
Oliver Walsh 2018-07-25 16:32:01 +01:00
parent 48645abff6
commit 73e27a8504
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ fi
set -eu
set -o pipefail
MODULES_LIST=${DIB_MODPROBE_BLACKLIST:?"Please set DIB_MODPROBE_BLACKLIST."}
MODULES_LIST=${DIB_MODPROBE_BLACKLIST:-""}
for mod_name in $MODULES_LIST; do
echo "blacklist $mod_name" >> /etc/modprobe.d/blacklist.conf