summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-04-17 16:52:32 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-18 00:37:57 +0100
commitef0e1cc32d19390626a9da6a948632ffacb242ac (patch)
treebe1c2b8148711472bfae8de759b77ae8541d2e3d /meta/recipes-core/busybox
parent295db7189536d97058c21ab34c52f46bee22d6b1 (diff)
downloadpoky-ef0e1cc32d19390626a9da6a948632ffacb242ac.tar.gz
busybox: fix mount issue
When the mount command is not given the filesystem type to mount, then it will try all the known filesystems. However, when a filesystem is not supported by the kernel, the mount function call will return ENODEV. The following patch, ecd90bc6aa63da2aef2513ac090d4b426b2b719c, introduced a problem because it bailed out on ENODEV too. Instead it should have only bailed out on ENOMEDIUM. [YOCTO #4308] (From OE-Core rev: 82320d2074572477f26887eddc51dc2a1dfea403) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/busybox')
-rw-r--r--meta/recipes-core/busybox/busybox-1.20.2/fail_on_no_media.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/busybox/busybox-1.20.2/fail_on_no_media.patch b/meta/recipes-core/busybox/busybox-1.20.2/fail_on_no_media.patch
index aa2cd25266..6745f169fe 100644
--- a/meta/recipes-core/busybox/busybox-1.20.2/fail_on_no_media.patch
+++ b/meta/recipes-core/busybox/busybox-1.20.2/fail_on_no_media.patch
@@ -23,7 +23,7 @@ Index: busybox-1.20.2/util-linux/mount.c
23+ * Break if there is no media, no point retrying for all 23+ * Break if there is no media, no point retrying for all
24+ * fs types since there is no media available 24+ * fs types since there is no media available
25+ */ 25+ */
26+ if ((rc == -1) && (errno == ENOMEDIUM || errno == ENODEV)) { 26+ if (rc == -1 && errno == ENOMEDIUM) {
27+ bb_perror_msg_and_die("mounting %s on %s failed", mp->mnt_fsname, mp->mnt_dir); 27+ bb_perror_msg_and_die("mounting %s on %s failed", mp->mnt_fsname, mp->mnt_dir);
28+ } 28+ }
29 if (!rc || (vfsflags & MS_RDONLY) || (errno != EACCES && errno != EROFS)) 29 if (!rc || (vfsflags & MS_RDONLY) || (errno != EACCES && errno != EROFS))