From fd7e1b6bcd64d2f60f393db90b940d1c263f0fe2 Mon Sep 17 00:00:00 2001 From: Ben Voui Date: Thu, 7 Aug 2008 19:54:49 +0200 Subject: [PATCH] Adding support for Virtio vd[a-z] drives. --- scripts/live | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/live b/scripts/live index 867efc0..54b43fb 100755 --- a/scripts/live +++ b/scripts/live @@ -561,6 +561,9 @@ is_nice_device () if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-[ide|scsi|usb])" then return 0 + elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$' + then + return 0 fi return 1 -- 2.1.4