[systemd-devel] [PATCH] random-seed: break ordering cycle with encrypted tmp partitions

Frederic Crozat fcrozat at suse.com
Fri Jan 6 08:28:43 PST 2012


Le vendredi 06 janvier 2012 à 17:17 +0100, Thomas Meyer a écrit :
> 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?

Good question. I'd say it will wait forever for it to appear.

Maybe we should ensure this file is create in systemd installation ?


-- 
Frederic Crozat <fcrozat at suse.com>
SUSE



More information about the systemd-devel mailing list