busybox: ignore fstab option "nofail"
[opendreambox.git] / meta-opendreambox / recipes-core / busybox / busybox-1.20.2 / 0009-mount-don-t-pass-option-nofail-to-the-kernel.patch
1 From cc5552ccdec4fc6648051683a1c2f89abb72a6c0 Mon Sep 17 00:00:00 2001
2 From: Andreas Oberritter <obi@opendreambox.org>
3 Date: Wed, 20 Mar 2013 14:59:20 +0100
4 Subject: [PATCH 9/9] mount: don't pass option "nofail" to the kernel
5
6 Fixes:
7 | ubifs_parse_options: unrecognized mount option "nofail" or missing value
8
9 Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
10 ---
11  util-linux/mount.c |    2 ++
12  1 file changed, 2 insertions(+)
13
14 diff --git a/util-linux/mount.c b/util-linux/mount.c
15 index 525fdcc..e05d0cd 100644
16 --- a/util-linux/mount.c
17 +++ b/util-linux/mount.c
18 @@ -219,6 +219,7 @@ static const int32_t mount_options[] = {
19                 /* "defaults" */ 0,
20                 /* "quiet" 0 - do not filter out, vfat wants to see it */
21                 /* "noauto" */ MOUNT_NOAUTO,
22 +               /* "nofail" */ 0,
23                 /* "sw"     */ MOUNT_SWAP,
24                 /* "swap"   */ MOUNT_SWAP,
25                 IF_DESKTOP(/* "user"  */ MOUNT_USERS,)
26 @@ -278,6 +279,7 @@ static const char mount_option_str[] =
27                 "defaults\0"
28                 // "quiet\0" - do not filter out, vfat wants to see it
29                 "noauto\0"
30 +               "nofail\0"
31                 "sw\0"
32                 "swap\0"
33                 IF_DESKTOP("user\0")
34 -- 
35 1.7.10.4
36