[systemd-devel] How to automatically decrypt a disk on connection

Mantas Mikulėnas grawity at gmail.com
Wed Mar 27 16:22:32 UTC 2024


On Wed, Mar 27, 2024, 16:36 Orion Poplawski <orion at nwra.com> wrote:

>
>
> Can I setup a unit that gets started automatically when a particular
> dev-disk-by-uuid device becomes present?
>

Just link it under dev-disk-foo.device.wants/ (systemctl enable, or
systemctl add-wants).

Alternatively, ENV{SYSTEMD_WANTS}="foo.service" from udev will have the
same effect.


> Thanks.
>
> --
> Orion Poplawski
> he/him/his  - surely the least important thing about me
> IT Systems Manager                         720-772-5637
> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
> 3380 Mitchell Lane                       orion at nwra.com
> Boulder, CO 80301                 https://www.nwra.com/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240327/0c1e3dbc/attachment-0001.htm>


More information about the systemd-devel mailing list