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

Orion Poplawski orion at nwra.com
Thu Mar 28 15:32:40 UTC 2024


On 3/28/24 01:30, Andrei Borzenkov wrote:
> On Wed, Mar 27, 2024 at 9:49 PM Orion Poplawski <orion at nwra.com> wrote:
>>>
>>> Use $kernel in rule and /dev/%I in service.
>>
>> Thank you, that works.  udev monitor -p doesn't show the value of KERNEL so I
>> didn't see that as an option.
>>
> 
> udev documentation lists $kernel when describing substitutions.

It does, but it's not clear to me what the value would be:

     The kernel name for this device.

I suppose "sda1" makes total sense, but perhaps some examples would be 
helpful.

> But yes, native support for systemd unit name escaping would be nice.

-- 
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 --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3826 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240328/0df6367a/attachment.bin>


More information about the systemd-devel mailing list