[systemd-devel] [PATCH 6/8] Install hwclock-load into the system unit dir, not the sysconf unit dir.

Lennart Poettering lennart at poettering.net
Thu Oct 28 16:36:31 PDT 2010


On Thu, 28.10.10 13:27, Bill Nottingham (notting at redhat.com) wrote:

hwclock-load.service is a bit weird. On sane systems it should not be
necessary, as the kernel will handle things correctly. Only systems
where the RTC is not UTC (which is a bad idea anyway) we need this.

By enabling this service from /etc instead of /lib I want to make clear
that this service is unnecessary in new systems and can be safely
disabled. Only when support for legacy operarting systems is required we
need to activate it. (Yes, in Fedora we should enable it by default, but
embedded folks don't need to).

> Signed-off-by: Bill Nottingham <notting at redhat.com>
> ---
>  Makefile.am |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Makefile.am b/Makefile.am
> index 3c65feb..c992eab 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -1137,7 +1137,7 @@ install-data-hook:
>  	( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
>  		rm -f remote-fs.target && \
>  		$(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
> -	( cd $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants && \
> +	( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
>  		rm -f hwclock-load.service && \
>  		$(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
>  	( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list