mount: support "noauto" in /etc/fstab - ubase - suckless linux base utils | |
git clone git://git.suckless.org/ubase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 43327506b697598bf565576f9f3a820cc87d79ed | |
parent 710081b07abac0f2f8c9a5502e93c24384b98959 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Fri, 20 Feb 2015 16:21:35 +0100 | |
mount: support "noauto" in /etc/fstab | |
Diffstat: | |
M mount.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git 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; |