Adding support for Virtio vd[a-z] drives.
authorBen Voui <intrigeri@boum.org>
Thu, 7 Aug 2008 17:54:49 +0000 (19:54 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:01 +0000 (17:48 +0100)
scripts/live

index 867efc0..54b43fb 100755 (executable)
@@ -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