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

2024-03-27 Thread Orion Poplawski
On 3/27/24 12:22, Andrei Borzenkov wrote: > On 27.03.2024 20:56, Orion Poplawski wrote: >> The only thing that's a bit funky with it is that it generates: >> >> Invalid unit name "clevis-luks-unlock@/dev/sda1.service" escaped as >> "[email protected]" (maybe you should use >> sy

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

2024-03-27 Thread Andrei Borzenkov
On 27.03.2024 20:56, Orion Poplawski wrote: On 3/27/24 10:22, Mantas Mikulėnas wrote: On Wed, Mar 27, 2024, 16:36 Orion Poplawski mailto:[email protected]>> wrote: Can I setup a unit that gets started automatically when a particular dev-disk-by-uuid device becomes present? Just lin

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

2024-03-27 Thread Orion Poplawski
On 3/27/24 11:56, Orion Poplawski wrote: > On 3/27/24 10:22, Mantas Mikulėnas wrote: >> >> >> On Wed, Mar 27, 2024, 16:36 Orion Poplawski > > wrote: >> >> >> >> Can I setup a unit that gets started automatically when a particular >> dev-disk-by-uuid device becomes pre

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

2024-03-27 Thread Orion Poplawski
On 3/27/24 10:22, Mantas Mikulėnas wrote: > > > On Wed, Mar 27, 2024, 16:36 Orion Poplawski > 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.d

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

2024-03-27 Thread Mantas Mikulėnas
On Wed, Mar 27, 2024, 16:36 Orion Poplawski 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}=

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

2024-03-27 Thread Orion Poplawski
On 3/27/24 07:29, Andrei Borzenkov wrote: On Wed, Mar 27, 2024 at 12:35 AM Orion Poplawski wrote: Sorry this isn't strictly devel - but it is a bit non-standard. I need to automatically unlock an encrypted disk on connection to a machine, with the caveat that I'm not mounting it - instead I w

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

2024-03-27 Thread Andrei Borzenkov
On Wed, Mar 27, 2024 at 12:35 AM Orion Poplawski wrote: > > Sorry this isn't strictly devel - but it is a bit non-standard. > > I need to automatically unlock an encrypted disk on connection to a machine, > with the caveat that I'm not mounting it - instead I want to connect it to a > VM. > > On

Re: [systemd-devel] Forking service behind socket and service.

2024-03-27 Thread Mantas Mikulėnas
On Wed, Mar 27, 2024 at 9:35 AM Steve Traylen wrote: > Hi, > I have a old legacy service that's a bit odd in that it was previously > launched by xinetd but is weird in that: > > After an initial quite quick auth and set up a daemon is forked of to run > the much longer process. > > Setting this

[systemd-devel] Forking service behind socket and service.

2024-03-27 Thread Steve Traylen
Hi, I have a old legacy service that's a bit odd in that it was previously launched by xinetd but is weird in that: After an initial quite quick auth and set up a daemon is forked of to run the much longer process. Setting this up with a socket me.socket and [email protected] does not work quite rig