Openembedded Core Discussions
 help / color / mirror / Atom feed
* dora: systemd + package_deb = broken run-postinsts
@ 2013-12-13 15:38 Steve Sakoman
  2013-12-13 15:58 ` Mark Hatle
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Sakoman @ 2013-12-13 15:38 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

A client has requested help setting up a build using debian packaging
and systemd as the init system.

When testing the initial image build I noticed that package postinsts
didn't seem to run properly.

It turns out that dpkg installs an S98run-postinsts file in /etc/rcS.d
in addition to the normal S99run-postinsts link to
/etc/init.d/run-postinsts.

Systemd-compat-units installs a run-postinsts.service file that calls
/etc/rcS.d/S99run-postinsts.

I haven't investigated why the standard /etc/rcS.d/S99run-postinsts
doesn't work properly for the debian case, but I have verified that
changing the service file to use the dpkg provided
/etc/rcS.d/S98run-postinsts works, as does changing dpkg to write
S99run-postinsts instead of S98run-postinsts.

I'm not sure what the "proper" fix is for this issue.  Any
debian/systemd experts care to weigh in with advice?

Regards,

Steve


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dora: systemd + package_deb = broken run-postinsts
  2013-12-13 15:38 dora: systemd + package_deb = broken run-postinsts Steve Sakoman
@ 2013-12-13 15:58 ` Mark Hatle
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Hatle @ 2013-12-13 15:58 UTC (permalink / raw)
  To: openembedded-core

On 12/13/13, 9:38 AM, Steve Sakoman wrote:
> A client has requested help setting up a build using debian packaging
> and systemd as the init system.
>
> When testing the initial image build I noticed that package postinsts
> didn't seem to run properly.
>
> It turns out that dpkg installs an S98run-postinsts file in /etc/rcS.d
> in addition to the normal S99run-postinsts link to
> /etc/init.d/run-postinsts.
>
> Systemd-compat-units installs a run-postinsts.service file that calls
> /etc/rcS.d/S99run-postinsts.
>
> I haven't investigated why the standard /etc/rcS.d/S99run-postinsts
> doesn't work properly for the debian case, but I have verified that
> changing the service file to use the dpkg provided
> /etc/rcS.d/S98run-postinsts works, as does changing dpkg to write
> S99run-postinsts instead of S98run-postinsts.
>
> I'm not sure what the "proper" fix is for this issue.  Any
> debian/systemd experts care to weigh in with advice?

Last time I looked into this problem, what appeared to be happening was the 
files run out of order.  I never did figure out why.

--Mark

> Regards,
>
> Steve
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-13 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13 15:38 dora: systemd + package_deb = broken run-postinsts Steve Sakoman
2013-12-13 15:58 ` Mark Hatle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox