Ok;  the error message for fsck.cifs has been resolved now via bug
#838091.  I don't know if mountall is still trying to find fsck for
filesystems with pass=0 set - it's not meant to, and the code is written
to specifically avoid fscking them.

> The bug now is the same underlying problem, that during the initial pass
> though fstab to do any file system checks during booting it is trying to
> mount the CIFS systems which (a) won't work as networking, etc, is not
> up yet, and (B) the log-in credentials are missing as they are on my
> /home partition, also not mounted yet.

So I don't agree that a) is a problem.  networking *may or may not* be
up at the time mountall first tries to mount the filesystems; and
networking may be *partially* up, but the route to the required server
may not be up yet.  mountall cannot sanely determine the "right" time to
try to mount the network filesystems, so it does the only reasonable
thing and tries to mount them at startup, and if that fails, tries to
mount them again each time a network device comes up (and signals
mountall with SIGUSR1).

b) however means that you have a dependency between your mounts, and
that's not something that mountall is designed to cope with.  It's not
going to introspect the fstab options for each filesystem type to detect
when a mount has dependencies on files stored on other filesystems.  For
your use case, I think the only appropriate solution is to mark the
filesystem 'noauto' and use an upstart like this to mount it at the
right time:

  start on mounted MOUNTPOINT=/home and network-device-up IFACE=$my_interface
  task
  pre-start exec mount /media/swdev

We could conceivably *also* hide the error messages from mount rather
than displaying them since we know that in many cases they will be
spurious; but then how do we ensure debuggability of the system when
there really is a problem with a network mount?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/575293

Title:
  mountall trying to check mounts with pass=0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/575293/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to