diff options
| author | Daniel Baumann <daniel@debian.org> | 2011-10-29 18:01:00 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-11-04 12:02:25 +0100 |
| commit | 914e4c090fea09756dc8737245cae9e1c85d6b1c (patch) | |
| tree | 60e5e625c45b5ecf55d4e0bfed7138c44af6a938 | |
| parent | cb875f156c0b733e7727fee28aa0aaec77fc1845 (diff) | |
| download | live-boot-914e4c090fea09756dc8737245cae9e1c85d6b1c.tar.gz live-boot-914e4c090fea09756dc8737245cae9e1c85d6b1c.zip | |
Updating matching in is_nice_device to, amongst others, match for virtio devices.
| -rwxr-xr-x | scripts/live | 2 |
1 files changed, 1 insertions, 1 deletions
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]$' |
