Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 1
    (And your differences from vanilla systemd are here.) RequiresMountsFor= does come with its own set of caveats. With RedHat bug #1088057 and Chris Siebenmann in hand, you should be able to answer superuser.com/questions/988734 . It's a CIFS mount in this question, too. But the implication is that it is auto, fortunately. Commented Dec 13, 2015 at 6:19
  • @JdeBP Thank you for the comment. I wasn't aware of the caveats and issues on that feature. Commented Dec 13, 2015 at 15:56
  • 2
    The issue with RequiresMountsFor= was that it didn't pull in the units to do the mount if they were not required by something else. E.g., noauto mounts in fstab. But this was changed ~2017 so there shouldn't be a problem using RequiresMountsFor anymore. Commented Feb 27, 2020 at 20:18
  • 1
    Simple question, but I can't find the answer anywhere: how would I go about requiring multiple mounts? Is it space-delimited like other parameters? Commented Jun 14, 2021 at 13:51
  • 1
    Seems to be space seoarated as you suspected: man7.org/linux/man-pages/man5/systemd.unit.5.html Commented Jun 15, 2021 at 18:06