Posted on Dec 14, 2015 By copyninja under devops

In the previous post I had mentioned that I didn't figure out how to add dependency on mount points so as to achieve correct ordering of mount points. After a lot of search today I finally figured it out thanks to the bug report and the patch which adds x-systemd.requires and other option to systemd.

So basically you can add additional ordering information to the .mount files generated by systemd-fstab-generator by adding a ordering.conf file to path /etc/systemd/system/usr-local-bin.mount.d/ path with following contents.


And that is it, now usr-local-bin.mount will be mounted after home.mount is activated.

I couldn't find this information directly in related manpages like systemd.mount or systemd.automount. Also this information is not directly available in search results!.