New commits:
commit 3a204fa1e9da90b965366523bc39e73773dd6f74
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>
scripts/add-sauce.sh: suffix .conf to blacklist
Add the .conf suffix to the module blacklist file. Cleaned up the
blacklisting code a little as well to hardcode less (more robust). This
fixes bug #15390.
diff --git a/scripts/add-sauce.sh b/scripts/add-sauce.sh
index df56de6..6fa1560 100755
--- a/scripts/add-sauce.sh
+++ b/scripts/add-sauce.sh
@@ -84,14 +84,19 @@ fi >&2
function blacklist_modules {
local SRC="${1%/}"
local DEST="${2%/}"
+ local BLACKLIST="$DEST/etc/modprobe.d/blacklist.conf"
+
+ # ensure that both the source and destination variables are directories
[[ ! -d "$SRC" || ! -d "$DEST" ]] && return 3
- mkdir -p "$DEST"/etc/modprobe.d
+
+ # ensure that the destination modprobe.d directory hierarchy exists
+ mkdir -p "${BLACKLISTi%/*}"