We test if to include the drm module or not by testing if there are any drm entry in sysfs. But there is an exception for hyper-v, DRM module take care of hyperv's framebuffer driver as well but hyperv_fb will not create any drm entry. So currently we got black screen on hyperv guest.
Fix by detect hyperv's special entry as well. --- dracut-module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index d1f9f5f..a10244b 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -20,7 +20,7 @@ check() { depends() { local _dep="base shutdown"
- if [ -n "$( find /sys/devices -name drm )" ]; then + if [ -n "$( find /sys/devices -name drm )" ] || [ -d /sys/module/hyperv_fb ]; then _dep="$_dep drm" fi
On 08/07/18 at 03:49pm, Kairui Song wrote:
We test if to include the drm module or not by testing if there are any drm entry in sysfs. But there is an exception for hyper-v, DRM module take care of hyperv's framebuffer driver as well but hyperv_fb will not create any drm entry. So currently we got black screen on hyperv guest.
Fix by detect hyperv's special entry as well.
dracut-module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index d1f9f5f..a10244b 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -20,7 +20,7 @@ check() { depends() { local _dep="base shutdown"
- if [ -n "$( find /sys/devices -name drm )" ]; then
- if [ -n "$( find /sys/devices -name drm )" ] || [ -d /sys/module/hyperv_fb ]; then _dep="$_dep drm" fi
-- 2.17.1 _______________________________________________ kexec mailing list -- kexec@lists.fedoraproject.org To unsubscribe send an email to kexec-leave@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org/...
Ack
Thanks Dave