On 07/25/2012 08:28 PM, Manuel Amador (Rudd-O) wrote: > As you can tell from my code: > > https://github.com/Rudd-O/zfs/blob/master/systemd/systemd-zfs-generator.in > > I carefully calculate dependencies so the file systems are mounted in > the correct order. > > Now that fstab unit generation is moving to a generator, I read the code > in systemd.git. I discovered it does not calculate dependencies (what > file systems to mount first) at all. It just sets very simple befores= > and afters=. > > However, the proper dependencies DO show when I do systemctl show (resp. > mount unit). > > Thus my question: > > Would it be correct to say that the generator I wrote absolutely does > not need to calculate parent file system dependencies, because some > black magic inside systemd / systemctl knows to figure out the parent > file system dependencies thus guarantees mounting in the right order??
You mean that "If an mount point is beneath another mount point in the file system hierarchy, a dependency between both units is created automatically."? So it says in systemd.mount(5). Zbyszek _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel