]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
chore(dracut): remove support for module-init-tools
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 25 Jan 2026 17:59:12 +0000 (12:59 -0500)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 25 Jan 2026 22:04:24 +0000 (17:04 -0500)
module-init-tools was EOL'ed in 2011.

partial revert of ecf42850c (from 2010).

dracut.sh

index 0cc007a4a06409a74fb4e1f133fccce9cd6a1ad3..531a670bae8ce9b8e781a9baff6afd0719336751 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1458,10 +1458,6 @@ export LC_MESSAGES=C kernel
 srcmods="$(realpath -e "${dracutsysrootdir-}/lib/modules/$kernel")"
 
 [[ ${drivers_dir-} ]] && {
-    if ! command -v kmod &> /dev/null && vercmp "$(modprobe --version | cut -d' ' -f3)" lt 3.7; then
-        dfatal 'To use --kmoddir option module-init-tools >= 3.7 is required.'
-        exit 1
-    fi
     srcmods="$drivers_dir"
 }
 export srcmods