From a2676136aa7dfc0551f4e30ba3360c4cf88ec6f0 Mon Sep 17 00:00:00 2001 From: Vincent R Date: Fri, 5 Mar 2010 19:36:00 +0100 Subject: support virtio blockdevices --- src/core/libs/lib-blockdevices-filesystems.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/libs/lib-blockdevices-filesystems.sh') diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh index 85f846c..c0fe3ad 100644 --- a/src/core/libs/lib-blockdevices-filesystems.sh +++ b/src/core/libs/lib-blockdevices-filesystems.sh @@ -141,8 +141,8 @@ finddisks() { [ "$2" ] && echo $2 fi done - #scsi/sata devices - for dev in $(ls | egrep '^sd'); do + #scsi/sata devices, and virtio blockdevices (/dev/vd*) + for dev in $(ls | egrep '^[sv]d'); do # TODO: what is the significance of 5? ASKDEV if ! [ "$(cat $dev/device/type)" = "5" ]; then echo -n "/dev/$dev$3" -- cgit v1.2.3-54-g00ecf