Bug 3512 - clock setting issue with sysVinit
Summary: clock setting issue with sysVinit
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 2120
  Show dependency treegraph
 
Reported: 2011-11-28 00:44 CET by Luc Menut
Modified: 2020-07-26 16:22 CEST (History)
7 users (show)

See Also:
Source RPM: initscripts-9.34-2.mga2.src.rpm
CVE:
Status comment:


Attachments
88-clock.rules with test on systemd (358 bytes, text/plain)
2011-11-28 00:47 CET, Luc Menut
Details

Description Luc Menut 2011-11-28 00:44:25 CET
Description of problem:
Until initscripts 9.25, clock was configure at start by udev (/lib/udev/rules.d/88-clock.rules).
88-clock.rules was dropped recently upstream
http://git.fedorahosted.org/git/?p=initscripts.git;a=commit;h=73d7cf7234f4c903e13de28d71a839afff9b93ca
because it causes issues in conjunction with systemd (e.g. mga bug 2521), and is not installed anymore with initscripts 9.34.
But these udev rules are still needed when using sysVinit in order to restore correctly the clock.
As we will support both systemd and sysVinit in Mga 2, I propose to reintroduce 88-clock.rules, but adding in it a test to not apply its rules when systemd is used (TEST=="/sys/fs/cgroup/systemd" ..., syntax from 70-udev-acl.rules).

Version-Release number of selected component (if applicable):
initscripts-9.34-2.mga2, sysvinit-2.87-10.mga1

How reproducible:


Steps to Reproduce:
1. configure HW clock in localtime
2. boot using sysVinit
3.
Luc Menut 2011-11-28 00:46:20 CET

CC: (none) => dmorganec, mageia, tmb

Comment 1 Luc Menut 2011-11-28 00:47:50 CET
Created attachment 1146 [details]
88-clock.rules with test on systemd
Thierry Vignaud 2011-11-28 10:05:10 CET

Keywords: (none) => PATCH
CC: (none) => thierry.vignaud
Blocks: (none) => 2120
Assignee: bugsquad => mageia

Comment 2 Colin Guthrie 2011-11-28 12:05:35 CET
Seems like a valid approach to me. I'll add this back in with your additional safety check.
Colin Guthrie 2011-11-28 12:05:44 CET

Status: NEW => ASSIGNED

Comment 3 Doug Laidlaw 2011-11-29 05:07:32 CET
*** Bug 2521 has been marked as a duplicate of this bug. ***

CC: (none) => davidwhodgins

Comment 4 Doug Laidlaw 2011-11-29 12:12:43 CET
I am running Mageia 2 from the KDE Live CD, as a hard disk install.  I had the same symptoms as in Bug 2521: clock was off by the amount of my timezone difference.  I added the rule in the attachment to my rules.d.  It was a complete fix.

CC: (none) => laidlaws

Guillaume Rousse 2011-12-07 09:52:56 CET

CC: (none) => guillomovitch
Summary: clock is not set properly when using sysVinit and hw clock in localtime => clock setting issue with sysVinit

Comment 5 Colin Guthrie 2011-12-07 10:24:50 CET
I'll try and get this merged today...
Comment 6 Colin Guthrie 2011-12-14 23:06:01 CET
Merged now. Thanks... only a week late which is pretty good for me :D

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED

Olav Vitters 2020-07-23 14:16:29 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=26990

Comment 7 Doug Laidlaw 2020-07-26 16:22:25 CEST
This is a very old bug. Mageia no longer uses SysV. Should the bug be closed?

Note You need to log in before you can comment on or make changes to this bug.