Various filesystems are converted now to the new mount API which does not
silently ignore the 'auto' option. So, mounting e.g. debugfs in fstab with
'auto' currently fails. Despite the ongoing discussion if this is a
regression[1], it was also mentioned that 'auto' should have never been sent to
the kernel in the first place. So, add it to the parser.

[1] 
https://lore.kernel.org/all/[email protected]/

Reported-by: Eric Sandeen <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
---
 util-linux/mount.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -340,6 +340,7 @@ static const int32_t mount_options[] ALI
                /* "defaults" */ 0,
                /* "quiet" 0 - do not filter out, vfat wants to see it */
                /* "noauto" */ MOUNT_NOAUTO,
+               /* "auto"   */ ~MOUNT_NOAUTO,
                /* "sw"     */ MOUNT_SWAP,
                /* "swap"   */ MOUNT_SWAP,
                IF_DESKTOP(/* "user"  */ MOUNT_USERS,)
@@ -403,6 +404,7 @@ static const char mount_option_str[] ALI
                "defaults\0"
                // "quiet\0" - do not filter out, vfat wants to see it
                "noauto\0"
+               "auto\0"
                "sw\0"
                "swap\0"
                IF_DESKTOP("user\0")
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to