1 > Running `mount -fv /mnt/pnt` incorrectly updates /etc/mtab
8 -f Causes everything to be done except for the actual system call;
9 if it's not obvious, this ``fakes'' mounting the file system. This option
10 is useful in conjunction with the -v flag to determine what the mount
11 command is trying to do. It can also be used to add entries for devices that
12 were mounted earlier with the -n option.
15 Also, we need it in /etc/init.d/checkroot to regen /etc/mtab ...
18 =======================================================================
19 Running `mount -afvt type` incorrectly warns that 'nothing was mounted'
27 #- if (!nomtab && mtab_is_writable()) {
28 #+ if (!fake && !nomtab && mtab_is_writable()) {
29 # if (flags & MS_REMOUNT)
30 # update_mtab (mnt.mnt_dir, &mnt);
35 result = do_mount_all (types, options, test_opts);
36 - if (result == 0 && verbose)
37 + if (result == 0 && verbose && !fake)
38 error(_("nothing was mounted"));