mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
units: enable hwclock by default
This commit is contained in:
parent
d3f09cf396
commit
7376cffd56
|
@ -941,8 +941,10 @@ install-data-hook:
|
||||||
$(LN_S) ../systemd-update-utmp-runlevel.service )
|
$(LN_S) ../systemd-update-utmp-runlevel.service )
|
||||||
( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
|
( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
|
||||||
rm -f systemd-update-utmp-shutdown.service \
|
rm -f systemd-update-utmp-shutdown.service \
|
||||||
|
hwclock-save.service \
|
||||||
systemd-random-seed-save.service && \
|
systemd-random-seed-save.service && \
|
||||||
$(LN_S) ../systemd-update-utmp-shutdown.service && \
|
$(LN_S) ../systemd-update-utmp-shutdown.service && \
|
||||||
|
$(LN_S) ../hwclock-save.service && \
|
||||||
$(LN_S) ../systemd-random-seed-save.service )
|
$(LN_S) ../systemd-random-seed-save.service )
|
||||||
( cd $(DESTDIR)$(sessionunitdir) && \
|
( cd $(DESTDIR)$(sessionunitdir) && \
|
||||||
rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
|
rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
|
||||||
|
@ -987,6 +989,7 @@ install-data-hook:
|
||||||
systemd-vconsole-setup.service \
|
systemd-vconsole-setup.service \
|
||||||
systemd-modules-load.service \
|
systemd-modules-load.service \
|
||||||
systemd-random-seed-load.service \
|
systemd-random-seed-load.service \
|
||||||
|
hwclock-load.service \
|
||||||
tmpwatch.timer \
|
tmpwatch.timer \
|
||||||
tmpwatch.service && \
|
tmpwatch.service && \
|
||||||
$(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
|
$(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
|
||||||
|
@ -997,6 +1000,7 @@ install-data-hook:
|
||||||
$(LN_S) ../systemd-vconsole-setup.service && \
|
$(LN_S) ../systemd-vconsole-setup.service && \
|
||||||
$(LN_S) ../systemd-modules-load.service && \
|
$(LN_S) ../systemd-modules-load.service && \
|
||||||
$(LN_S) ../systemd-random-seed-load.service && \
|
$(LN_S) ../systemd-random-seed-load.service && \
|
||||||
|
$(LN_S) ../hwclock-load.service && \
|
||||||
$(LN_S) ../tmpwatch.timer && \
|
$(LN_S) ../tmpwatch.timer && \
|
||||||
$(LN_S) ../tmpwatch.service )
|
$(LN_S) ../tmpwatch.service )
|
||||||
( cd $(DESTDIR)$(dbussessionservicedir) && \
|
( cd $(DESTDIR)$(dbussessionservicedir) && \
|
||||||
|
|
|
@ -26,6 +26,3 @@ ExecStart=/sbin/hwclock --systz
|
||||||
# Note that we do not run --hctosys here, we assume the kernel
|
# Note that we do not run --hctosys here, we assume the kernel
|
||||||
# includes a compiled in RTC module which is used to initialize the
|
# includes a compiled in RTC module which is used to initialize the
|
||||||
# system time as part of kernel setup.
|
# system time as part of kernel setup.
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sysinit.target
|
|
||||||
|
|
|
@ -13,6 +13,3 @@ Before=poweroff.service reboot.service halt.service killall.service
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/sbin/hwclock --systohc
|
ExecStart=/sbin/hwclock --systohc
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=shutdown.target
|
|
||||||
|
|
Loading…
Reference in a new issue