summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
authorMichael Prokop <mika@debian.org>2010-06-17 01:58:31 +0200
committerMichael Prokop <mika@debian.org>2010-06-17 18:13:49 +0200
commit91f5947c08560feecb5f05d85efa6a2669486de3 (patch)
tree169cce04120e5da507b1400026fb5aa9f08ac577 /hook-functions
parent74f71c9697d7dd7b25a7014320a7366027149fee (diff)
downloadinitramfs-tools-91f5947c08560feecb5f05d85efa6a2669486de3.tar.gz
initramfs-tools-91f5947c08560feecb5f05d85efa6a2669486de3.zip
hook-functions: install virtio_pci module if /sys/bus/virtio is present and using modules=dep
Thanks: Vincent Danjean <vdanjean@debian.org> Closes: #585992 Signed-off-by: Michael Prokop <mika@debian.org>
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/hook-functions b/hook-functions
index ded7887..d860bc7 100644
--- a/hook-functions
+++ b/hook-functions
@@ -365,6 +365,10 @@ dep_add_modules()
manual_add_modules mmc_block
fi
+ if [ -e /sys/bus/virtio ] ; then
+ manual_add_modules virtio_pci
+ fi
+
if [ -e /sys/bus/i2o/devices/ ]; then
force_load i2o_block
force_load i2o_config