On Tue, Sep 30, 2014 at 4:12 AM, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
On Tue, Sep 30, 2014 at 12:18:43AM -0400, jon@ringle.org wrote:
> From: Jon Ringle <jringle@gridpoint.com>
>
> This allows platform specific customizations to /lib/systemd/system/ to
> be installed on the target
>
> Signed-off-by: Jon Ringle <jringle@gridpoint.com>
> ---
>  rules/systemd.make | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rules/systemd.make b/rules/systemd.make
> index ff3d606..51ffcac 100644
> --- a/rules/systemd.make
> +++ b/rules/systemd.make
> @@ -303,7 +303,7 @@ ifdef PTXCONF_SYSTEMD_NETWORK
>  endif
>
>  #    # units
> -     @$(call install_tree, systemd, 0, 0, -, /lib/systemd/system/)
> +     @$(call install_alternative_tree, systemd, 0, 0, /lib/systemd/system/)

Are you sure, this is what you want? install_alternative_tree replaces the
entire tree, not individual files. You can overwrite individual files by
placing your copy in /etc/systemd/system/.


Normally, systemd enable/disable will create/remove a symlink from /etc/systemd/system/ to the corresponding file in /lib/systemd/system/. If I put a real file in /etc/systemd/system/, how will systemd handle enable/disable of a service?

Jon