Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10048 - /etc/init.d/clock
Summary: /etc/init.d/clock
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 10075 10272 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-01 01:58 UTC by Thomas Jäger
Modified: 2003-12-05 10:41 UTC (History)
4 users (show)

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 Thomas Jäger 2002-11-01 01:58:22 UTC
during the last daylight saving time changes i recognized that during each boot
process one hour was added to the local clock (hwclock and system time). i 
checked this and found following situation:


config: 
  rc.conf has set "local" CLOCK (hwclock = systemtime)
  my timezone:  CET = UTC/GMT + 1
  latest baselayout (1.8.4.1), no changes to the rc-scripts 
    clock v.1.7 has need localmount
    clock v.1.8 checkroot



during /etc/init.d/clock the hwclock will be set to systemtime, during this
  a output of "date" will result   ...time UTC ...

after /etc/init.d/localmount an output of "date" will result  ... time+1 CET ...
  (my /etc/localtime file (link) is on the root filesystem!)

when shutting down hwclock will be set to systemtime (so hwclock will now
  be set to time+1)

next reboot will again add one hour


i changed the clock init script and added localmount to the need parameters
with this change everything works fine
Comment 1 SpanKY gentoo-dev 2002-11-01 21:31:24 UTC
*** Bug 10075 has been marked as a duplicate of this bug. ***
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-02 01:07:46 UTC
You know of course that checkroot mounts / ?
Comment 3 Thomas Jäger 2002-11-02 01:27:48 UTC
oh damned..

yes, i know that chechroot mounts /
but i have a seperate /usr partition 
   ... and there is /usr/share/zoneinfo/... stored

Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-03 01:05:44 UTC
I am guessing you are using the evil /etc/localtime symlink ?

Can you try it with a unmodified clock from latest baselayout, after
doing:

 # zic -l Africa/Johannesburg

just with your timezone ?

Thanks.
Comment 5 Leonid Kabanov 2002-11-03 20:14:07 UTC
If / and /usr stored on diffrent volumes zic just do symlink, as it were 
before: 
 
# ls -l /etc/localtime 
lrwxrwxrwx    1 root     root           36 2002-09-24 16:14 /etc/localtime -> 
/usr/share/zoneinfo/Asia/Krasnoyarsk 
# zic -l Asia/Krasnoyarsk 
"command line", line 1: warning: hard link failed, symbolic link used 
# ls -l /etc/localtime 
lrwxrwxrwx    1 root     root           39 2002-11-04 08:53 /etc/localtime -> 
..//usr/share/zoneinfo/Asia/Krasnoyarsk 
 
So I still need localmount in baselayout 
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-04 08:15:24 UTC
Fixed on CVS, thanks.
Comment 7 SpanKY gentoo-dev 2002-11-05 11:27:06 UTC
*** Bug 10272 has been marked as a duplicate of this bug. ***