#5563 NORM Retriag: Verify that /etc/localtime is preserved across upgrades.

Zarro Boogs per Child bugtracker at laptop.org
Thu Dec 20 17:31:25 EST 2007


#5563: Verify that /etc/localtime is preserved across upgrades.
---------------------+------------------------------------------------------
  Reporter:  cscott  |       Owner:  bernie           
      Type:  defect  |      Status:  new              
  Priority:  normal  |   Milestone:  Retriage, Please!
 Component:  distro  |     Version:                   
Resolution:          |    Keywords:                   
  Verified:  0       |  
---------------------+------------------------------------------------------
Changes (by cscott):

  * owner:  cscott => bernie
  * milestone:  Never Assigned => Retriage, Please!


Comment:

 OK, bernie, I verified that we're not Doing The Right Thing here yet.  I
 think olpc-utils needs a patch:

 1) /etc/timezone in /etc/statetab should be changed to
 /etc/sysconfig/clock (see trac #4959)
 2) we should run '/usr/sbin/tzdata-update' whenever we need to reconfigure
 the root, to ensure that /etc/localtime is rewritten to match
 /etc/sysconfig/clock.

 I suspect /etc/localtime should be added to /etc/statetab as well, in
 order to keep our root read-only.  sugar-control-panel is fine with that,
 but tzdata-update (see http://pastebin.ca/823971) does the 'write new file
 and move it over old file' trick.  Sigh.

 This should be fixed for update.1 if we want to avoid resetting people's
 timezones with the upgrade.

-- 
Ticket URL: <http://dev.laptop.org/ticket/5563#comment:1>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list