On Sat, Aug 23, 2008 at 02:36:17PM -0300, André Luís Lopes wrote: > Jérémy Bobbio escreveu: > >> If the CD is not on a virtio interface, passing "modules=virtio-modules" > >> on the command-line should work. > > > > Well… actually it needs to be "modules=virtio-modules-2.6.26-1-amd64-di" > > or "modules=virtio-modules-2.6.26-1-486-di"… which is a bit cumbersome. > > Indeed, using modules=virtio-modules-2.6.26-1-486-di at the install > prompt I was able to complete the installation under KVM using > paravirtualized network/block devices and there was no need to go back > back to main-menu and choose the virtio module manually. This could be automated by the attached patch. But this does not feel like the best approach to me… Cheers, -- Jérémy Bobbio .''`. lunar@debian.org : :Ⓐ : # apt-get install anarchism `. `'` `-
commit 063f9c0744a924870573f9840c0e4ec80447afea Author: Jérémy Bobbio <lunar@debian.org> Date: Sat Aug 23 12:03:00 2008 +0200 Install virtio-modules when virtio devices are detected on the PCI bus diff --git a/packages/hw-detect/debian/changelog b/packages/hw-detect/debian/changelog index 9866646..1200d7f 100644 --- a/packages/hw-detect/debian/changelog +++ b/packages/hw-detect/debian/changelog @@ -3,6 +3,7 @@ hw-detect (1.66) UNRELEASED; urgency=low [ Jérémy Bobbio ] * On frontends other than GTK+, only ask about PCMCIA resource range when user decided to start PCMCIA. (Closes: #479391) + * Install virtio-modules when virtio devices are detected on the PCI bus. [ Ian Campbell ] * Add Xen virtual Ethernet to list of known Ethernet drivers. diff --git a/packages/hw-detect/hw-detect.sh b/packages/hw-detect/hw-detect.sh index 5f20036..953f7ad 100755 --- a/packages/hw-detect/hw-detect.sh +++ b/packages/hw-detect/hw-detect.sh @@ -22,6 +22,13 @@ if db_get hw-detect/load-ide && [ "$RET" = true ]; then LOAD_IDE=1 fi +# Check for virtio devices +if [ -d /sys/bus/pci/devices ] && \ + grep -q 0x1af4 /sys/bus/pci/devices/*/vendor 2>/dev/null && \ + ! grep -q ^virtio_ /proc/modules; then + anna-install virtio-modules || true +fi + if [ -x /sbin/depmod ]; then depmod -a > /dev/null 2>&1 || true fi
Attachment:
signature.asc
Description: Digital signature