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
1 changed files with 2 additions and 0 deletions

View File

@ -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;