summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/udev
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-04-22 08:52:29 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-28 12:12:20 +0100
commit6a7aa9cac2fc128ffc9ea4416426335e06db345a (patch)
treefa7957bde495404b7c6bf48079f15177e67d668b /meta/recipes-core/udev
parent35483a617698587b20e019a58b4973629569764c (diff)
downloadpoky-6a7aa9cac2fc128ffc9ea4416426335e06db345a.tar.gz
udev-extraconf: Avoid mounting unknown filesystems
Depending on kernel version used, the system can hung when trying to mount the extended partition (not the logical one) as it is a holder for other partitions and does not have a filesystem in it. To avoid this to happen we just mount partitions when these are using known filesystems so it does not try to mount a partition for an unsupported filesystem. Reported-by: Vladan Jovanovic <vladan.jovanovic@gmail.com> Reported-by: Leonardo Sandoval Gonzalez <b42214@freescale.com> (From OE-Core rev: 895c9685a7f95dc84786213f945895a504a16254) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Tested-by: Vladan Jovanovic <vladan.jovanovic@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/udev')
-rw-r--r--meta/recipes-core/udev/udev-extraconf/mount.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
index 97af608398..d1419ed09c 100644
--- a/meta/recipes-core/udev/udev-extraconf/mount.sh
+++ b/meta/recipes-core/udev/udev-extraconf/mount.sh
@@ -47,7 +47,7 @@ rm_dir() {
47 fi 47 fi
48} 48}
49 49
50if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ]; then 50if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && [ -n "$ID_FS_TYPE" ]; then
51 if [ -x "$PMOUNT" ]; then 51 if [ -x "$PMOUNT" ]; then
52 $PMOUNT $DEVNAME 2> /dev/null 52 $PMOUNT $DEVNAME 2> /dev/null
53 elif [ -x $MOUNT ]; then 53 elif [ -x $MOUNT ]; then