[systemd-devel] [PATCH] core/cryptsetup: Add WantsMountFor option to enable fallback to password request for crypt mounts.
Harald Hoyer
harald.hoyer at gmail.com
Tue May 27 05:37:39 PDT 2014
On 21.05.2014 10:03, Lennart Poettering wrote:
> On Sun, 18.05.14 19:36, Przemek Rudy (prudy1 at o2.pl) wrote:
>
>> diff --git a/src/core/automount.c b/src/core/automount.c
>> index 65e6d6f..d4359b9 100644
>> --- a/src/core/automount.c
>> +++ b/src/core/automount.c
>> @@ -124,7 +124,7 @@ static int automount_add_mount_links(Automount *a) {
>> if (r < 0)
>> return r;
>>
>> - return unit_require_mounts_for(UNIT(a), parent);
>> + return unit_needs_mounts_for(UNIT(a), parent, true);
>> }
>>
>
> Please make the the last parameter one of type UnitDependency, so that
> one can either pass UNIT_WANTS or UNIT_REQUIRES there. THat makes the
> calls much more descriptive, as well as more generic.
>
> Otherwise looks pretty good!
>
> Lennart
>
Hmm, I might see a problem in the initramfs, where devices show up bit by bit.
The user might then be confronted with the password dialog, although the device
with the key file will show up a little bit later.
But I might be wrong. Time will tell.
More information about the systemd-devel
mailing list