summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-10-15 09:07:31 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-10-15 09:07:31 +0200
commite5e8d934a9d992efec23998e289863852df18b8b (patch)
tree1a241627a57e341a17cafd015b77a5be1298019c /components
parent7c6f95f7cf3e26d0b6cedbd7caaa8b7b6d13d77b (diff)
downloadlive-boot-e5e8d934a9d992efec23998e289863852df18b8b.tar.gz
live-boot-e5e8d934a9d992efec23998e289863852df18b8b.zip
Applying patch from Michael Prokop <mika@grml.org> to update udev usage in is_nice_device() for newer udev versions.
Diffstat (limited to 'components')
-rwxr-xr-xcomponents/9990-misc-helpers.sh2
1 files changed, 1 insertions, 1 deletions
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]$'