From: Daniel Baumann Date: Sat, 29 Oct 2011 16:01:00 +0000 (+0200) Subject: Updating matching in is_nice_device to, amongst others, match for virtio devices. X-Git-Tag: debian/3.0_a22-1~4 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=inline;h=914e4c090fea09756dc8737245cae9e1c85d6b1c;hp=cb875f156c0b733e7727fee28aa0aaec77fc1845;p=live-boot-grml.git Updating matching in is_nice_device to, amongst others, match for virtio devices. --- diff --git a/scripts/live b/scripts/live index 5fb8a26..2dc0a7e 100755 --- a/scripts/live +++ b/scripts/live @@ -485,7 +485,7 @@ is_nice_device () { sysfs_path="${1#/sys}" - if /lib/udev/path_id "${sysfs_path}" | egrep -q "ID_PATH=(usb|pci-|platform-sata_mv|platform-orion-ehci|platform-mmc|platform-mxsdhci|)" + if /lib/udev/path_id "${sysfs_path}" | egrep -q "ID_PATH=(usb|pci-[^-]*-(ide|sas|scsi|usb|virtio)|platform-sata_mv|platform-orion-ehci|platform-mmc|platform-mxsdhci)" then return 0 elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$'