From 241308c00efb3ea2f1bf3c4f41c5cdaaeb001b77 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Wed, 10 Feb 2010 19:51:13 +0100 Subject: hack to enable loading of virtio_net after virtio_pci, maybe nex time via modules.dep --- initramfs/stage3-stuff/bin/hwautocfg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'initramfs/stage3-stuff/bin/hwautocfg') diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg index 0bfbdd2c..9cd0f8a4 100755 --- a/initramfs/stage3-stuff/bin/hwautocfg +++ b/initramfs/stage3-stuff/bin/hwautocfg @@ -31,6 +31,10 @@ modprobe -a ${MODPRV} usbhid hid-bright 2>/dev/null & nwcardlist=$(echo ${slxconf_listnwmod}|sed "s/\ /|/g") hwinfo --netcard --usb-ctrl | grep modprobe | grep -E "$nwcardlist|hcd" | \ grep -v ehci | sed 's/.* Cmd: "//;s/"//' | sort -u >/etc/modprobe.base +# virtio hack +if [ $(grep -ic "virtio_pci" /etc/modprobe.base) -ge 1 ]; then + echo "modprobe virtio_net" >>/etc/modprobe.base +fi ash /etc/modprobe.base; mdev -s # optimization possible: exclude network and usb base drivers from the # following list (bios detection for non-hwautocfg component) -- cgit v1.2.3-55-g7522