summaryrefslogtreecommitdiffstats
path: root/install/virtio
diff options
context:
space:
mode:
authorSebastien Luttringer <seblu@seblu.net>2011-09-12 19:05:59 +0200
committerDave Reisner <dreisner@archlinux.org>2011-10-01 21:51:51 +0200
commit2478492fec8cc140c6aad69f8a102a587f2b68e8 (patch)
tree7abcc04d1f82381793383fcad2e9fbdac5162f79 /install/virtio
parent407775cd739d8dde0b41636862f2fd4244bed06f (diff)
downloadmkinitcpio-2478492fec8cc140c6aad69f8a102a587f2b68e8.tar.gz
mkinitcpio-2478492fec8cc140c6aad69f8a102a587f2b68e8.tar.xz
Add a virtio hook0.7.3
This allow initcpio to boot vm which use virtio as network/disk backend. Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Diffstat (limited to 'install/virtio')
-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: