Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401433 - /etc/conf.d/hwclock parameter comments misleading
Summary: /etc/conf.d/hwclock parameter comments misleading
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 399185
  Show dependency tree
 
Reported: 2012-01-30 03:58 UTC by Milos Ivanovic
Modified: 2012-02-18 19:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Ivanovic 2012-01-30 03:58:49 UTC
Hi team,

I've found some misleading terms in the /etc/conf.d/hwclock file which I think should be changed to prevent confusion.

***********************************************************************
# If you want to set the Hardware Clock to the current System Time
# (software clock) during shutdown, then say "YES" here.
# You normally don't need to do this if you run a ntp daemon.
clock_systohc="YES"
***********************************************************************

Why wouldn't you need this if you run an ntp daemon? I run an ntp daemon and I still want my hardware clock to be up-to-date.

***********************************************************************
# If you want to set the system time to the current hardware clock
# during bootup, then say "YES" here. You do not need this if you are
# running a modern kernel with CONFIG_RTC_HCTOSYS set to y.
# Also, be aware that if you set this to "NO", the system time will
# never be saved to the hardware clock unless you set
# clock_systohc="YES" above.
clock_hctosys="YES"
***********************************************************************

As for the above, what part of setting clock_hctosys to "YES" has anything to do with saving the _software_ clock to the _hardware_ clock? Apparently if I set that value to "NO", it will never save the software clock to the hardware clock: "the system time will never be saved to the hardware clock". This is misleading and/or incorrect because if I set it to "YES", it won't do that either; this parameter is strictly HC to SYS *only*.

Here are my suggestions:

* remove (or elaborate)
         # You normally don't need to do this if you run a ntp daemon.

* remove or reword
         # Also, be aware that if you set this to "NO", the system time will
         # never be saved to the hardware clock unless you set
         # clock_systohc="YES" above.

Reproducible: Always
Comment 1 William Hubbs gentoo-dev 2012-02-18 19:29:33 UTC
This is fixed in commit a21a2c3.

Thanks for the report.