virtio_blk.ko missing from initramfs in 2.1.4
After installation from 2.1.4 CD into a KVM guest with virtio devices system fails to come up from vda as kernel/drivers/block/virtio_blk.ko is missing from the stock initramfs. It is present on the storage so once added the initramfs it works as expected.
My work around is as follows after a setup-disk run
# mkdir /tmp/a && mount -text3 /dev/vda3 /tmp/a && mount -text3 /dev/vda1 /tmp/a/boot && chroot /tmp/a
create a file /etc/mkinitfs/modules.d/virtio containing the following lines (the second may not be required, I’ve not tested that)
kernel/drivers/block/virtio*
kernel/drivers/virtio/*
Then run:
# mkinitfs
# exit
# reboot
System should now come up without further problem, with the net and other drivers being picked up from /lib/modules after bootstrap.
(from redmine: issue id 518, created on 2011-01-19, closed on 2011-03-08)
- Changesets:
- Revision 7feac413 on 2011-03-07T13:10:21Z:
main/mkinitfs: upgrade to 2.3.1
ref #518
- Revision 3f325048 on 2011-03-07T13:17:10Z:
main/mkinitfs: make sure patches are applied and add virtio support
- fix / beeing world writeable when tmpfs
- include virtio driver support
fixes #518