This allow initcpio to boot vm which use virtio as network/disk backend. Signed-off-by: Sebastien Luttringer <seblu@seblu.net> --- install/virtio | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 install/virtio diff --git a/install/virtio b/install/virtio new file mode 100644 index 0000000..67bcb3c --- /dev/null +++ b/install/virtio @@ -0,0 +1,16 @@ +#!/bin/bash + +build() { + MODULES="$(checked_modules 'virtio_\(blk\|pci\)')" +} + +help () +{ + cat<<HELPEOF +This hook loads the necessary modules for a virtio root device. +Detection will take place at runtime. To minimize the modules +in the image, add the autodetect hook too. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: -- Sebastien "Seblu" Luttringer