Applying patch from Michael Prokop <mika@grml.org> to update udev usage in is_nice_de...
authorDaniel Baumann <mail@daniel-baumann.ch>
Tue, 15 Oct 2013 07:07:31 +0000 (09:07 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Tue, 15 Oct 2013 07:07:31 +0000 (09:07 +0200)
components/9990-misc-helpers.sh

index 2a3e6ad..902ddfe 100755 (executable)
@@ -76,7 +76,7 @@ is_nice_device ()
 {
        sysfs_path="${1#/sys}"
 
-       if udevadm test-builtin 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)"
+       if udevadm info --query=all --path="${sysfs_path}" | egrep -q "DEVTYPE=disk"
        then
                return 0
        elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$'