summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBen Voui <intrigeri@boum.org>2008-08-07 19:54:49 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:01 +0100
commitfd7e1b6bcd64d2f60f393db90b940d1c263f0fe2 (patch)
treeb3940d774e81c9aaa8f077a2211c34e1384223dd /scripts
parent31f40045de3ced9d6e30aaab4d18986534318090 (diff)
downloadlive-boot-fd7e1b6bcd64d2f60f393db90b940d1c263f0fe2.tar.gz
live-boot-fd7e1b6bcd64d2f60f393db90b940d1c263f0fe2.zip
Adding support for Virtio vd[a-z] drives.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live3
1 files changed, 3 insertions, 0 deletions
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