[systemd-devel] [PATCH] random-seed: break ordering cycle with encrypted tmp partitions
Thomas Meyer
thomas at m3y3r.de
Fri Jan 13 11:07:24 PST 2012
Am Freitag, den 06.01.2012, 16:40 +0100 schrieb Frederic Crozat:
> 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.
>
> Of course, it would be best to have also confirmation from Michal ;)
>
btw. I get this message with the patch applied:
[ 10.607877] systemd-random-seed[102]: Failed to write new random seed file: Bad file descriptor
besides that, it seems to work correctly.
kind regards
thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120113/258747f8/attachment.pgp>
More information about the systemd-devel
mailing list