summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/virtio15
1 files changed, 15 insertions, 0 deletions
diff --git a/install/virtio b/install/virtio
new file mode 100644
index 0000000..0343e9f
--- /dev/null
+++ b/install/virtio
@@ -0,0 +1,15 @@
+#!/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: