[systemd-devel] [PATCH] systemd-random-seed: start random-seed service after fedora-readonly

Václav Pavlín vpavlin at redhat.com
Thu Mar 14 04:56:26 PDT 2013


Kay Sievers píše v Čt 14. 03. 2013 v 12:40 +0100:
> On Thu, Mar 14, 2013 at 9:55 AM, Vaclav Pavlin <vpavlin at redhat.com> wrote:
> > From: Václav Pavlín <vpavlin at redhat.com>
> >
> > When using readonly-root systemd-random-seed.service fails because
> > /var/lib/random-seed is not writable at the time. Adding fedora-readonly.service to
> > systemd-randomd-seed's After solves this issue - mentioned file is bind
> > mounted as rw before it is used.
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=888615
> > ---
> >  units/systemd-random-seed-load.service.in | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/units/systemd-random-seed-load.service.in b/units/systemd-random-seed-load.service.in
> > index e9156ef..2ff78d5 100644
> > --- a/units/systemd-random-seed-load.service.in
> > +++ b/units/systemd-random-seed-load.service.in
> > @@ -10,7 +10,7 @@ Description=Load Random Seed
> >  Documentation=man:systemd-random-seed-load.service(8) man:random(4)
> >  DefaultDependencies=no
> >  RequiresMountsFor=@RANDOM_SEED@
> > -After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service
> > +After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service fedora-readonly.service
> >  Before=sysinit.target final.target
> 
> You can never add fedora stuff to upstream.
> 
> This service would need to be _properly_ implemented, and shipped
> upstream too, if it should be referenced. :)
> 
> Can't you add a Before= to the fedora-* service?
> 
> Kay

Sure, that sounds much better. I will do that this way, thanks Kay.

Vaclav




More information about the systemd-devel mailing list