]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh: forgot --set-version $kernel for modprobe
authorHarald Hoyer <harald@redhat.com>
Mon, 2 Jul 2012 20:14:49 +0000 (22:14 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 2 Jul 2012 20:14:49 +0000 (22:14 +0200)
dracut-functions.sh

index eabbb0deb7c0b32401b56658721a1a0eeb569d32..2898c30464bf4afab5d356a2df65957defd4dce3 100755 (executable)
@@ -1201,7 +1201,8 @@ dracut_kernel_post() {
     local _moddirname=${srcmods%%/lib/modules/*}
 
     if [[ $DRACUT_KERNEL_LAZY_HASHDIR ]] && [[ -f "$DRACUT_KERNEL_LAZY_HASHDIR/lazylist" ]]; then
-        xargs -r modprobe -a ${_moddirname+-d ${_moddirname}/} --ignore-install --show-depends \
+        xargs -r modprobe -a ${_moddirname+-d ${_moddirname}/} \
+            --ignore-install --show-depends --set-version $kernel \
             < "$DRACUT_KERNEL_LAZY_HASHDIR/lazylist" 2>/dev/null \
             | sort -u \
             | while read _cmd _modpath _options; do