[systemd-devel] [PATCH] random-seed: break ordering cycle with encrypted tmp partitions
Thomas Meyer
thomas at m3y3r.de
Fri Jan 6 08:17:49 PST 2012
Zitat von Frederic Crozat <fcrozat at suse.com>:
> Le vendredi 23 décembre 2011 à 01:47 +0100, Tom Gundersen a écrit :
>> Rather than ordering systemd-random-seed-load.service after local-fs.target,
>> start it by path-activation.
>>
>> We need write access to the seed, so we order the path unit after
>> remount-rootfs.service (in case /var is on the root fs).
>>
>> A better solution might be to introduce PathIsWritable=, but that is not
>> necessary in order to solve the problem, and I don't know of any other
>> usecases for it.
>
> I've just tested your patch and it works fine ; I quickly tested with /
> being read-only and mounted writable by systemd and not initrd (which is
> the default for openSUSE) and it worked fine too.
>
I wonder what will happen with this patch if /var/lib/random-seed is
missing at startup! timeout?
More information about the systemd-devel
mailing list