OSDN Git Service

0-auto-detect: avoid loading hyperv modules android-x86-7.1-r2
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 2 May 2018 03:43:18 +0000 (11:43 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 2 May 2018 03:43:18 +0000 (11:43 +0800)
initrd/scripts/0-auto-detect

index de9b754..432a73d 100644 (file)
@@ -15,7 +15,7 @@ auto_detect()
        sort -r /lib/modules/`uname -r`/modules.alias | \
                sed -n 's/^alias  *\([^ ]*\)  *\(.*\)/\1)busybox modprobe \2;;/p' >> $tmp
        echo 'esac; done; }' >> $tmp
-       for f in $(grep -Eh "drm_kms|sound.core" /lib/modules/`uname -r`/modules.dep | cut -d. -f1); do
+       for f in $(grep -Eh "drm_kms|sound.core|hyperv" /lib/modules/`uname -r`/modules.dep | cut -d. -f1); do
                sed -i "/$(basename $f | sed 's/-/_/g')/d" $tmp
        done
        source $tmp