If you really need to store your configuration to a alternative files
then you have to explicitly specify the files or directories on
mount(8) command line by --fstab option.
Signed-off-by: Karel Zak <kzak@redhat.com>
# define DBG_FLUSH do { ; } while(0)
#endif
-/* extension for files in the /etc/fstab.d directory */
+/* extension for files in the directory */
#define MNT_MNTTABDIR_EXT ".fstab"
/* library private paths */
else
rc = -EINVAL;
- if (rc == 0 && strcmp(filename, _PATH_MNTTAB) == 0) {
- if (!access(_PATH_MNTTAB_DIR, R_OK))
- rc = mnt_table_parse_dir(tb, _PATH_MNTTAB_DIR);
- }
return rc;
}
.B findmnt
command is able to search in
.IR /etc/fstab ,
-.IR /etc/fstab.d ,
.IR /etc/mtab
or
.IR /proc/self/mountinfo .
Print help and exit.
.IP "\fB\-s, \-\-fstab\fP"
Search in
-.IR /etc/fstab
-and
-.IR /etc/fstab.d .
+.IR /etc/fstab .
The output is in the list format (see --list).
.IP "\fB\-m, \-\-mtab\fP"
Search in
.BR fstab (5)
file could be overrided by --fstab <path> command line option (see below for
more details).
-
-If the
-.B mount
-command is linked with libmount, then filesystems could be also defined in
-.I /etc/fstab.d/*.fstab
-files. See
-.BR fstab (5)
-for more details.
.LP
The command
.RS
.I /etc/fstab
filesystem table
.TP
-.I /etc/fstab.d
-directory with filesystem tables
-.TP
.I /etc/mtab
table of mounted filesystems
.TP