mount: support "noauto" in /etc/fstab

This commit is contained in:
Hiltjo Posthuma 2015-02-20 16:21:35 +01:00 committed by sin
parent 710081b07a
commit 43327506b6

View File

@ -225,6 +225,8 @@ mountall:
if (!(fp = setmntent("/etc/fstab", "r"))) if (!(fp = setmntent("/etc/fstab", "r")))
eprintf("setmntent %s:", "/etc/fstab"); eprintf("setmntent %s:", "/etc/fstab");
while ((me = getmntent(fp))) { while ((me = getmntent(fp))) {
if (hasmntopt(me, MNTOPT_NOAUTO))
continue;
/* already mounted, skip */ /* already mounted, skip */
if (mounted(me->mnt_dir)) if (mounted(me->mnt_dir))
continue; continue;