← Back to team overview

touch-packages team mailing list archive

[Bug 1377258] Re: /etc/default/rcS: UTC=no: Utopic time is off by 4 hours after boot

 

Ah thanks. I think I understand this now, so setting to Triaged.
Debian's systemd is using /etc/adjtime to indicate whether the hw clock
is UTC or LOCAL, and masks /etc/init.d/hwclock.sh. But right now in
Ubuntu we still use /etc/default/rcS's UTC= setting.

Option 1: Keep rcS UTC setting: Un-mask hwclock.sh in util-linux so that
it runs under systemd, or write a specific unit for it. This will keep
our delta for that in sysvinit, util-linux, and systemd forever.

Option 2: Drop rcS UTC setting, drop our deltas in sysvinit, util-linux,
and systemd, and migrate that setting to /etc/adjtime like in Debian.
Our only delta would then be to bump the version comparison in
systemd.postinst to do the migration, which we could drop after 16.04
LTS.

I'm favoring option 2, but I remember that Steve seemed to dislike
/etc/adjtime quite much, so I'd like to ask him about his opinion first.

** Changed in: util-linux (Ubuntu)
   Importance: Undecided => High

** Changed in: util-linux (Ubuntu)
       Status: Incomplete => Triaged

** Changed in: util-linux (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1377258

Title:
  /etc/default/rcS: UTC=no: Utopic time is off by 4 hours after boot

Status in “util-linux” package in Ubuntu:
  Triaged

Bug description:
  Every day for the couple of several weeks when booting into Utopic the time is off usually by 4 hours.
  I went to time and date settings and the ability to check get time Automatically from the internet is greyed out.
  Even though it knows I am in US Eastern Standard time this does not fix it:
  cavsfan@cavsfan-MS-7529:~$ sudo dpkg-reconfigure tzdata

  Current default time zone: 'America/New_York'
  Local time is now:      Tue Sep 30 08:09:32 EDT 2014.
  Universal Time is now:  Tue Sep 30 12:09:32 UTC 2014.

  The only thing that will fix it is sudo ntpdate ntp.ubuntu.com
  This happens to me in Gnome Flashback (with Compiz) every single day but others report it happens in Unity too.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: tzdata 2014g-1
  ProcVersionSignature: Ubuntu 3.16.0-20.27-generic 3.16.3
  Uname: Linux 3.16.0-20-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.14.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Gnome Flashback (with Compiz)
  Date: Fri Oct  3 13:45:36 2014
  InstallationDate: Installed on 2014-03-10 (207 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140310)
  PackageArchitecture: all
  SourcePackage: tzdata
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1377258/+subscriptions


References