mirror of git://git.suckless.org/ubase
mount: support "noauto" in /etc/fstab
This commit is contained in:
parent
710081b07a
commit
43327506b6
2
mount.c
2
mount.c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue