From: Daniel Baumann Date: Tue, 15 Oct 2013 07:07:31 +0000 (+0200) Subject: Applying patch from Michael Prokop to update udev usage in is_nice_de... X-Git-Tag: debian/4.0_alpha16-1~1 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=e5e8d934a9d992efec23998e289863852df18b8b;p=live-boot-grml.git Applying patch from Michael Prokop to update udev usage in is_nice_device() for newer udev versions. --- diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh index 2a3e6ad..902ddfe 100755 --- a/components/9990-misc-helpers.sh +++ b/components/9990-misc-helpers.sh @@ -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]$'