9afca5646fab1e3b961c0ca48c162044084e4207
[live-boot-grml.git] / debian / patches / 43_fix_udev_usage_in_is_nice_device.patch
1 --- a/scripts/boot/9990-misc-helpers.sh
2 +++ b/scripts/boot/9990-misc-helpers.sh
3 @@ -117,7 +117,7 @@
4  {
5         sysfs_path="${1#/sys}"
6  
7 -       if /sbin/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)"
8 +       if /sbin/udevadm info --query=all --path="${sysfs_path}" | egrep -q "DEVTYPE=disk"
9         then
10                 return 0
11         elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$'