From 43327506b697598bf565576f9f3a820cc87d79ed Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 20 Feb 2015 16:21:35 +0100 Subject: [PATCH] mount: support "noauto" in /etc/fstab --- mount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mount.c b/mount.c index 2c51d18..11ac669 100644 --- a/mount.c +++ b/mount.c @@ -225,6 +225,8 @@ mountall: if (!(fp = setmntent("/etc/fstab", "r"))) eprintf("setmntent %s:", "/etc/fstab"); while ((me = getmntent(fp))) { + if (hasmntopt(me, MNTOPT_NOAUTO)) + continue; /* already mounted, skip */ if (mounted(me->mnt_dir)) continue;