[systemd-devel] What's the correct way to configure encrypted volume and mount point?

John Lane systemd at jelmail.com
Wed Feb 4 05:48:12 PST 2015


On 02/02/15 20:49, Lennart Poettering wrote:
> BTW, just to mention this. You can also just write:
>
> # systemctl start /home/myuser/data
That's good to know, thanks.
>
> This will automatically be translated to
> "home-myuser-data.mount". systemctl has some logic built in to
> translate strings that don't look like unit names into unit names.
>
> Essentially this hence means that this:
>
>    a) mount /home/myuser/data
>    b) systemctl start /home/myuser/data
>
> However, the latter respects the whole systemde depency logic, while
> the former just tries to mount the specified dir immediately, ignoring
> all deps.
yep, got that now. "mount" doesn't hit-up systemd so the deps don't happen.
I'll train my mind to remember option (b).




More information about the systemd-devel mailing list