73e27a8504
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
14 lines
241 B
Bash
Executable File
14 lines
241 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
MODULES_LIST=${DIB_MODPROBE_BLACKLIST:-""}
|
|
|
|
for mod_name in $MODULES_LIST; do
|
|
echo "blacklist $mod_name" >> /etc/modprobe.d/blacklist.conf
|
|
done
|