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;