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

2015-02-12 Thread John Lane
On 11/02/15 20:03, Lennart Poettering wrote: Well, no. It would add Wants= and After=, instead of Requires= and After=. But I figure what you wrote was just a typo? yes what you say is what I meant. I think we should switch over to use WantsMountsFor for this unconditionally. After all we can

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

2015-02-11 Thread Lennart Poettering
On Thu, 05.02.15 10:08, John Lane (syst...@jelmail.com) wrote: On 02/02/15 20:54, Lennart Poettering wrote: On Sat, 31.01.15 11:21, John Lane (syst...@jelmail.com) wrote: Further to this, I tried manually creating a systemd-cryptsetup unit instead of putting an entry in /etc/crypttab.

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

2015-02-05 Thread John Lane
On 02/02/15 20:54, Lennart Poettering wrote: On Sat, 31.01.15 11:21, John Lane (syst...@jelmail.com) wrote: Further to this, I tried manually creating a systemd-cryptsetup unit instead of putting an entry in /etc/crypttab. This allowed me to remove the RequiresMountsFor entry. Yeah, I figure

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

2015-02-04 Thread John Lane
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

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

2015-02-02 Thread Lennart Poettering
On Sat, 31.01.15 11:21, John Lane (syst...@jelmail.com) wrote: Further to this, I tried manually creating a systemd-cryptsetup unit instead of putting an entry in /etc/crypttab. This allowed me to remove the RequiresMountsFor entry. Yeah, I figure for your usecase a WantsMountsFor= setting

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

2015-02-02 Thread Lennart Poettering
On Thu, 29.01.15 17:31, John Lane (syst...@jelmail.com) wrote: I am looking for some advice about configuring encrypted volumes with systemd that I want to open on demand (noauto). I can add entries into /etc/crypttab and /etc/fstab for the device, for example # name device

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

2015-01-31 Thread John Lane
On 30/01/15 09:49, Jan Janssen wrote: But really: why not use automounting logic in fstab?: /dev/mapper/data /home/myuser/data ext4 noauto,x-systemd.automount 0 0 No need to manually trigger a mount. And you can even use noauto in crypttab so that the encrypted device is only opened once

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

2015-01-31 Thread John Lane
On 31/01/15 10:25, John Lane wrote: On 30/01/15 09:49, Jan Janssen wrote: But really: why not use automounting logic in fstab?: /dev/mapper/data /home/myuser/data ext4 noauto,x-systemd.automount 0 0 No need to manually trigger a mount. And you can even use noauto in crypttab so that the

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

2015-01-30 Thread Jan Janssen
John Lane systemd at jelmail.com writes: $ mount /home/myuser/data mount: special device /dev/mapper/keyring does not exist Your crypttab entry uses noauto as an option. This means that it won't get activated and no plain text device is created. Hence your manual mount can only fail. I'm

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

2015-01-29 Thread John Lane
I am looking for some advice about configuring encrypted volumes with systemd that I want to open on demand (noauto). I can add entries into /etc/crypttab and /etc/fstab for the device, for example # name device password options data

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

2015-01-29 Thread Andrei Borzenkov
On Thu, Jan 29, 2015 at 8:31 PM, John Lane syst...@jelmail.com wrote: I am looking for some advice about configuring encrypted volumes with systemd that I want to open on demand (noauto). I can add entries into /etc/crypttab and /etc/fstab for the device, for example # name device