[oe-commits] Laurentiu Palcu : busybox: fix mount issue
git at git.openembedded.org
git at git.openembedded.org
Wed Apr 17 23:37:09 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 82320d2074572477f26887eddc51dc2a1dfea403
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=82320d2074572477f26887eddc51dc2a1dfea403
Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date: Wed Apr 17 16:52:32 2013 +0300
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]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
.../busybox/busybox-1.20.2/fail_on_no_media.patch | 2 +-
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 aa2cd25..6745f16 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
+ * Break if there is no media, no point retrying for all
+ * fs types since there is no media available
+ */
-+ if ((rc == -1) && (errno == ENOMEDIUM || errno == ENODEV)) {
++ if (rc == -1 && errno == ENOMEDIUM) {
+ bb_perror_msg_and_die("mounting %s on %s failed", mp->mnt_fsname, mp->mnt_dir);
+ }
if (!rc || (vfsflags & MS_RDONLY) || (errno != EACCES && errno != EROFS))
More information about the Openembedded-commits
mailing list