From 6a7aa9cac2fc128ffc9ea4416426335e06db345a Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 22 Apr 2013 08:52:29 -0300 Subject: 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 Reported-by: Leonardo Sandoval Gonzalez (From OE-Core rev: 895c9685a7f95dc84786213f945895a504a16254) Signed-off-by: Otavio Salvador Tested-by: Vladan Jovanovic Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-core/udev/udev-extraconf/mount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-core/udev/udev-extraconf') 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() { fi } -if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ]; then +if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ] && [ -n "$ID_FS_TYPE" ]; then if [ -x "$PMOUNT" ]; then $PMOUNT $DEVNAME 2> /dev/null elif [ -x $MOUNT ]; then -- cgit v1.2.3-54-g00ecf