Re: [systemd-devel] Starting services enabled by filesystem overlay over /etc/

2019-02-13 Thread Matt Schuckmann
Umut,

That works, it took me a little while to get the details worked out because 
there are few resources that are unavailable when the generators run.


Thank you,

Matt S.


Message: 1
Date: Tue, 12 Feb 2019 13:49:48 +0100
From: Umut Tezduyar Lindskog 
To: Matt Schuckmann 
Cc: "systemd-devel@lists.freedesktop.org"

Subject: Re: [systemd-devel] Starting services enabled by filesystem
overlay over /etc/
Message-ID:

Content-Type: text/plain; charset="UTF-8"

> Also checkout systemd generators
> (https://www.freedesktop.org/software/systemd/man/systemd.generator.html<https://www.freedesktop.org/software/systemd/man/systemd.generator.html>).
> A generator can overlay the /etc and generators should run before
> systemd starts scanning the unit files.

> Umut

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Starting services enabled by filesystem overlay over /etc/

2019-02-11 Thread Matt Schuckmann
Thank you all for the responses.

It sounds like I should look into creating an initramfs to mount my writable 
partitions and /etc overlay. I've never created an initramfs so it might take 
me a bit to work through it.


In the mean time I've found that masking services does work with my overlay for 
enabling or disabling services. So my plan now is to leave the service enabled 
in the read-only rootfs and then mask or unmask it in the /etc overlay.  This 
seems to be a reasonable workaround until I can get an initramfs in place; 
unless one of you helpful people tells me otherwise.


Thanks,

Matt S.


[PS I hope this gets added to the correct thread, I'm only receiving digests 
and I'm not sure how best to respond].
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] Starting services enabled by filesystem overlay over /etc/

2019-02-09 Thread Matt Schuckmann
I have an embedded system with a readonly rootfs.

I've setup a very early service that mounts a writable aufs overlay over /etc/.


The problem I'm having is systemd is not starting any services that I have 
enabled in that overlay that were not initially enabled in the readonly rootfs.

?I've tried placing a calls to systemctl daemon-reload or systemctl 
daemon-reexec just after mounting the overlay but the services are not started, 
after the fact systemctl will report that the services are enabled but inactive.


What do I need to do to get systemd to automatically start the services that 
are marked enabled in that overlay?


Matt S.


___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel