Hi manic, thanks for taking the time to file this bug report.

I believe the 'mounting' event may be what you are looking for. mountall
will emit this event before it mounts a filesystem. When emitting an
upstart event, mountall waits for anything that consumes the event
(start on mounted or stop on mounted) is done.

So you should be able to say

start on mounting MOUNTPOINT!=/

Which will cause this job to be started right before mounting any non
root mount point. Note that this includes swap, so further tests like
TYPE!=swap might be necessary.

There is also the 'mounted' event, which gets emitted after. Note,
however, that it does not get emitted for /, presumably since mountall
doesn't actually mount it through the same method.

Wouldn't this solve the problem for you manic?

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

Title:
  cannot insert job just after mounting root filesystem and all other 
filesystems (or other tasks)

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to