diff options
author | Maxime Petazzoni <mpetazzoni@mvista.com> | 2009-09-01 17:20:30 +0200 |
---|---|---|
committer | Chris Larson <clarson@mvista.com> | 2009-12-09 11:47:09 -0700 |
commit | 9de20344a049c623228cc76e564bb7852992698c (patch) | |
tree | ebacdb5c6ebaba5149af460441e3d6e479ed8880 /recipes/udev/udev-100 | |
parent | 9e047cb931b2047b611d2df1b960a7adc14afa67 (diff) |
udev: exclude mtd* from persistent storage rules
Exclude mtd* devices from the persistent storage rules to avoid invalid
vol_id invocations on MTD partitions that may not be accessible.
Signed-off-by: Maxime Petazzoni <mpetazzoni@mvista.com>
Diffstat (limited to 'recipes/udev/udev-100')
-rw-r--r-- | recipes/udev/udev-100/mtd-exclude-persistent.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes/udev/udev-100/mtd-exclude-persistent.patch b/recipes/udev/udev-100/mtd-exclude-persistent.patch new file mode 100644 index 0000000000..2b848810d2 --- /dev/null +++ b/recipes/udev/udev-100/mtd-exclude-persistent.patch @@ -0,0 +1,17 @@ +Copyright (c) 2009 MontaVista Software, Inc. All rights reserved. + +--- + etc/udev/rules.d/60-persistent-storage.rules | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- udev-100.orig/etc/udev/rules.d/60-persistent-storage.rules ++++ udev-100/etc/udev/rules.d/60-persistent-storage.rules +@@ -5,7 +5,7 @@ ACTION!="add", GOTO="persistent_storage_ + SUBSYSTEM!="block", GOTO="persistent_storage_end" + + # skip rules for inappropriate block devices +-KERNEL=="ram*|loop*|fd*|nbd*|dm-*", GOTO="persistent_storage_end" ++KERNEL=="ram*|loop*|fd*|mtd*|nbd*|dm-*", GOTO="persistent_storage_end" + + # never access non-cdrom removable ide devices, the drivers are causing event loops on open() + KERNEL=="hd*[!0-9]", ATTRS{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end" |