[PATCH] mount: don't pass option "auto" to kernel
Andreas Oberritter
obi at opendreambox.org
Mon Apr 22 09:54:42 UTC 2013
Fixes the following error if "auto" is set in fs options:
| EXT3-fs (sda1): error: unrecognized mount option "auto" or missing value
| EXT4-fs (sda1): Unrecognized mount option "auto" or missing value
| XFS (sda1): unknown mount option [auto].
Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
---
Applies on top of "mount: don't pass option "nofail" to the kernel"
util-linux/mount.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 624ca06..bc26119 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -222,6 +222,7 @@ static const int32_t mount_options[] = {
IF_FEATURE_MOUNT_FSTAB(
/* "defaults" */ 0,
/* "quiet" 0 - do not filter out, vfat wants to see it */
+ /* "auto" */ 0,
/* "noauto" */ MOUNT_NOAUTO,
/* "nofail" */ 0,
/* "sw" */ MOUNT_SWAP,
@@ -282,6 +283,7 @@ static const char mount_option_str[] =
IF_FEATURE_MOUNT_FSTAB(
"defaults\0"
// "quiet\0" - do not filter out, vfat wants to see it
+ "auto\0"
"noauto\0"
"nofail\0"
"sw\0"
--
1.7.10.4
More information about the busybox
mailing list