[systemd-devel] Specifier support for Alias

Oleksii Shevchuk alxchk at gmail.com
Sat Mar 9 01:48:48 PST 2013


> To achieve this:
> "Mount units must be named after the mount point directories they control."

> Our is there a better way?

Hm. Really. Anyway, looks like it's fixed/works in latest release:

systemctl enable iit-bs-cifs at D.mount 
ln -s '/etc/systemd/system/iit-bs-cifs at .mount' '/etc/systemd/system/mnt-iit-bs-cifs-D.mount'

But hehe.. There is another bug, with escaping:

> grep Alias iit-bs-cifs at .mount 
Alias=mnt-iit\x2dbs\x2dcifs\x2d%i.mount

So alias created unescaped..

And it doesn't work anyway. Looks like templated .mount units couldn't
be supported with current restrictions. I.e. unit name with @ wont't be
equal to Where=, and templates in Alias= couldn't be resolved, because
of missing @..


More information about the systemd-devel mailing list