From 5249350c80a6158ebcf278e780f42c6abc3643f1 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 28 Nov 2016 17:47:14 -0500 Subject: functions: attempt to (re)add builtin modules crc32 is a builtin module in the Arch kernel but also a crypto module. Resolve by this only noting that a module is added if the value in the has is 1, and not 2 (indicating a builtin). While we're here, change the f2fs softdep of crc32 to crypto-crc32. ref: https://bugs.archlinux.org/task/49380 --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 756b968..4afc902 100644 --- a/functions +++ b/functions @@ -361,7 +361,7 @@ add_module() { target=${1%.ko*} target=${target//-/_} # skip expensive stuff if this module has already been added - (( _addedmodules["$target"] )) && return + (( _addedmodules["$target"] == 1 )) && return while IFS=':= ' read -r -d '' field value; do case "$field" in @@ -413,7 +413,7 @@ add_module() { add_module "libcrc32c?" ;; f2fs) - add_module "crc32?" + add_module "crypto-crc32?" ;; esac } -- cgit v1.2.3-24-g4f1b