From 2ad719ad809e14944b9b00264fec3e3a2e2f9af4 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Wed, 2 May 2018 11:43:18 +0800 Subject: [PATCH] 0-auto-detect: avoid loading hyperv modules --- initrd/scripts/0-auto-detect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initrd/scripts/0-auto-detect b/initrd/scripts/0-auto-detect index de9b754..432a73d 100644 --- a/initrd/scripts/0-auto-detect +++ b/initrd/scripts/0-auto-detect @@ -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 -- 2.11.0