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/39a2d0a7-20f3-4a51-b2e0-1ade3eab1...@sandeen.net/

Reported-by: Eric Sandeen <sand...@redhat.com>
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
 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
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to