From fd7e1b6bcd64d2f60f393db90b940d1c263f0fe2 Mon Sep 17 00:00:00 2001 From: Ben Voui Date: Thu, 7 Aug 2008 19:54:49 +0200 Subject: Adding support for Virtio vd[a-z] drives. --- scripts/live | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/live b/scripts/live index 867efc0..54b43fb 100755 --- a/scripts/live +++ b/scripts/live @@ -559,6 +559,9 @@ is_nice_device () sysfs_path="${1#/sys}" 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 -- cgit v1.2.3