I know that this is a valid systemd unit configuration file syntax:
[Unit]
RequiresMountsFor=/mnt/foo /mnt/bar
...
Recently, I've seen a multiline variant of the above:
[Unit]
RequiresMountsFor=/mnt/foo
RequiresMountsFor=/mnt/bar
...
Are these two syntaxes semantically equivalent?
I checked the RequiresMountsFor option in the systemd.unit manpage, which explicitly states: "Takes a space-separated list of absolute paths." Also there's a hint on similarities with Requires and After options. The Requires option's documentation explicitly states that the single-line and multi-line syntaxes are equivalent (for the Requires option): "This option may be specified more than once or multiple space-separated units may be specified in one option in which case requirement dependencies for all listed names will be created." So I'd guess that the same applies to RequiresMountsFor.
Looks like it’s equivalent indeed:
This should probably be documented better in the manpage; it’s not true for all directives, as systemd.syntax(7) points out: