FS#4550 - add a conf.d file for clock settings
Attached to Project:
Arch Linux
Opened by Dale Blount (dale) - Tuesday, 02 May 2006, 15:43 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 17 April 2008, 20:03 GMT
Opened by Dale Blount (dale) - Tuesday, 02 May 2006, 15:43 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 17 April 2008, 20:03 GMT
|
Details
Similar to the sysconfig file RedHat/Fedora uses..
http://www.redhat.com/archives/fedora-list/2005-April/msg04936.html I can implement and send patches if that's easier. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Thursday, 17 April 2008, 20:03 GMT
Reason for closing: Implemented
Additional comments about closing: USEDIRECTISA in rc.conf
Thursday, 17 April 2008, 20:03 GMT
Reason for closing: Implemented
Additional comments about closing: USEDIRECTISA in rc.conf
FS#7667andFS#8437. They have been declared non-bugs which is technically correct because they don't occur on real hardware, but are still pain in the ass for us VirtualBox users. Having the hwclock parameters in a separate place like conf.d or rc.conf would allow us to change them without manually patching rc.{sysinit,shutdown} scripts on each upgrade.It's something I'd like to avoid. Even more so, I'd like to avoid moving yet more functionality outside of rc.conf for something like this. I've heard a lot of "rc.conf is awesome" but never "editing 30 files in /etc/conf.d is awesome"
As for rc.conf vs conf.d, as I said in my earlier comment above I have no preference, either one is fine by me as long as it spares me from editing rc.sysinit and rc.shutdown all the time. I know the title of this bug report specifies conf.d, but if the original submitter has no objection I vote for rc.conf too.
We've spent alot of time for tracking all time-related bugs.
If you need some extra parameters - no problem implementing them in rc.conf or conf.d, but rc.d/hwclock - no way!
So it appears we cannot use a rc.d script as the clock is needed well before we get to that point.
If so, Roman can you explain what problems this would cause? See on my system right now, I can set the time any time after /dev is loaded. And it works fine. Could you please explain the reasoning, as "no way!" doesn't really give me very much info.
FS#5444,FS#5445,FS#5529,FS#6063(it took a *lot* of time and work to get it to a really good working state)(in short - what correct hwclock handling must take into considerations: UTC/localtime in BIOS, timezone, is /usr separate?, is / read-only, what timezone was on previous mount etc.)
Why --directisa should be made configurable:
FS#4929,FS#8437The difference here, is that your stance is "it works, don't touch it", where my stance is "we can do this better".
However, I'm getting offtrack here. I will fall in line with the "it works, don't touch it" crowd for simplicity and brevity:
http://code.phraktured.net/?p=initscripts.git;a=commitdiff;h=9bf2014b750579d9720c13c9dfb9d358e0c27665
*EDIT* amended the commit, new URL
> See on my system right now, I can set the time any time after /dev is loaded. And it works fine.
ehm..
FS#8665;)Anyway, we cannot set hwclock in rc.d because of
FS#5445.I didn't mean that the code shouldn't be touched *just* because it works, but because I don't see any way to make it better by moving hwclock setting to rc.d.
Your patch for USEDIRECTISA is good (you forgot about rc.shutdown though).
I think this report can be closed after releasing new initscripts.