ref: 63dd899ff9e159070853374a9748f95f83f4d5ee
parent: 6a15ae8dec7b0f374d5b1c401b3fbdaa9cba714e
author: Natanael Copa <ncopa@alpinelinux.org>
date: Thu Nov 18 04:11:13 CST 2021
init: add a workaround for wmware vmware scsi host has issues with coldplugging, which causes nlplug-findfs to not find the device withing excpected time. We work around this by detect vmware and manually load ata_piix and mptspi drivers early, so they are already loaded when nlplug-findfs runs. ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/8476
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -466,6 +466,11 @@
fi
eend 0
+# workaround for vmware
+if grep -q VMware /sys/devices/virtual/dmi/id/sys_vendor 2>/dev/null; then
+ modprobe -a ata_piix mptspi sr-mod
+fi
+
if [ -n "$KOPT_cryptroot" ]; then
cryptopts="-c ${KOPT_cryptroot}"
if [ "$KOPT_cryptdiscards" = "yes" ]; then