diskimage-builder/diskimage_builder/elements/modprobe/install.d/80-modprobe-blacklist
Oliver Walsh 73e27a8504 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
2018-07-25 16:33:47 +01:00

13 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