projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb875f1
)
Updating matching in is_nice_device to, amongst others, match for virtio devices.
author
Daniel Baumann
<daniel@debian.org>
Sat, 29 Oct 2011 16:01:00 +0000
(18:01 +0200)
committer
Daniel Baumann
<daniel@debian.org>
Fri, 4 Nov 2011 11:02:25 +0000
(12:02 +0100)
scripts/live
patch
|
blob
|
history
diff --git
a/scripts/live
b/scripts/live
index
5fb8a26
..
2dc0a7e
100755
(executable)
--- 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]$'