[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#751238: marked as done (util-linux/linux: ignores RTC when the RTC driver is a module)



Your message dated Fri, 25 Jul 2014 00:33:55 +0000
with message-id <E1XATSN-0005RR-4f@franck.debian.org>
and subject line Bug#751238: fixed in util-linux 2.25-2
has caused the Debian Bug report #751238,
regarding util-linux/linux: ignores RTC when the RTC driver is a module
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
751238: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751238
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: util-linux,linux
Severity: important
Tags: patch

With the new armmp kernel, RTC drivers are built as modules, and thus
the kernel doesn't set the system clock from the hardware clock when
the module is loaded, as explained in the RTC_HCTOSYS_DEVICE KConfig
option:

| The driver for this RTC device must be loaded before late_initcall
| functions run, so it must usually be statically linked.

In that case, util-linux should set the system clock from the RTC
itself. This is correctly done through /etc/init.d/hwclock.sh when udev
is not used. When using udev, the rule 85-hwclock.rules call
hwclock-set, which assumes that the system clock has already been set
earlier by the kernel and that the only remaining thing to do is the
correct it to the local timezone (--systz). While this was true with
the wheezy kernels, it's not longer true with the jessie one, and the
--systohc option has to be used instead.

This is the purpose of the patch below:

--- util-linux-2.20.1/debian/hwclock-set
+++ util-linux-2.20.1/debian/hwclock-set
@@ -24,5 +24,5 @@
 if [ yes = "$BADYEAR" ] ; then
-    /sbin/hwclock --rtc=$dev --systz --badyear
+    /sbin/hwclock --rtc=$dev --hctosys --badyear
 else
-    /sbin/hwclock --rtc=$dev --systz
+    /sbin/hwclock --rtc=$dev --hctosys
 fi
--- util-linux-2.20.1/debian/hwclock.rules
+++ util-linux-2.20.1/debian/hwclock.rules
@@ -1,4 +1,4 @@
-# Reset the System Clock to UTC if the hardware clock from which it was
-# copied by the kernel was in localtime.
+# Set the System Time from the Hardware Clock and set the kernel's timezone
+# value to the local timezone when the kernel clock module is loaded.
 
 KERNEL=="rtc0", RUN+="/lib/udev/hwclock-set $root/$name"

-- System Information:
Debian Release: 7.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armhf (armv7l)

Kernel: Linux 3.13-0.bpo.1-armmp (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

--- End Message ---
--- Begin Message ---
Source: util-linux
Source-Version: 2.25-2

We believe that the bug you reported is fixed in the latest version of
util-linux, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 751238@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Henriksson <andreas@fatal.se> (supplier of updated util-linux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 25 Jul 2014 02:09:39 +0200
Source: util-linux
Binary: util-linux util-linux-locales mount bsdutils fdisk-udeb cfdisk-udeb libblkid1 libblkid1-udeb libblkid-dev libmount1 libmount-dev libsmartcols1 libsmartcols1-udeb libsmartcols-dev libuuid1 uuid-runtime libuuid1-udeb uuid-dev util-linux-udeb
Architecture: source amd64 all
Version: 2.25-2
Distribution: experimental
Urgency: medium
Maintainer: Debian util-linux Maintainers <ah-util-linux@debian.org>
Changed-By: Andreas Henriksson <andreas@fatal.se>
Description:
 bsdutils   - basic utilities from 4.4BSD-Lite
 cfdisk-udeb - Manually partition a hard drive (cfdisk) (udeb)
 fdisk-udeb - Manually partition a hard drive (fdisk) (udeb)
 libblkid-dev - block device id library - headers and static libraries
 libblkid1  - block device id library
 libblkid1-udeb - stripped down block device id library, for debian-installer (udeb)
 libmount-dev - device mounting library - headers and static libraries
 libmount1  - device mounting library
 libsmartcols-dev - smart column output alignment library - headers and static librar
 libsmartcols1 - smart column output alignment library
 libsmartcols1-udeb - stripped down smart column output aligment library, for debian-in (udeb)
 libuuid1   - Universally Unique ID library
 libuuid1-udeb - stripped down universally unique id library, for debian-installer (udeb)
 mount      - Tools for mounting and manipulating filesystems
 util-linux - Miscellaneous system utilities
 util-linux-locales - Locales files for util-linux
 util-linux-udeb - stripped down miscellaneous system utilities, for debian-installe (udeb)
 uuid-dev   - universally unique id library - headers and static libraries
 uuid-runtime - runtime components for the Universally Unique ID library
Closes: 605439 736400 751238 755926 755972
Changes:
 util-linux (2.25-2) experimental; urgency=medium
 .
   [ Andreas Henriksson ]
   * Add runuser pam configuration from Fedora
   * Install bash-completion for selected utilities
   * Prevent dh_installman from messing up rename.ul manpage (Closes: #755926)
   * Drop misplaced Multi-Arch property on libblkid1-udeb
 .
   [ Aurelien Jarno ]
   * Set system time directly from hw clock in udev rule (Closes: #751238)
 .
   [ Mike ]
   * Don't require nfs-common on NFS-rooted system (Closes: #605439)
 .
   [ Benda Xu ]
   * Fine-tune hwclock.sh init script LSB dependencies (Closes: #736400)
 .
   [ Andreas Henriksson ]
   * Keep mandatory Required-Stop LSB header in hwclock.sh init script
   * Revert "Disable tests for now"
   * Fix binary-arch only builds (Closes: #755972)
Checksums-Sha1:
 ae82b462e7f1226c5f26a5854d1fc02a7efd7a8e 2803 util-linux_2.25-2.dsc
 777ea171215ac2253ca824162fb1e4e06628cde1 81656 util-linux_2.25-2.debian.tar.xz
 f3467fd799028fcec6589b82d52884d0ef59aba6 856376 util-linux_2.25-2_amd64.deb
 77d2d21992e8d1e07401133040f1d0d5f694a96c 803802 util-linux-locales_2.25-2_all.deb
 d154b3cc22aa4add1e73bd495e980222518f607f 164568 mount_2.25-2_amd64.deb
 6516f376d63769253f095ac4521cf21948ed0cda 120306 fdisk-udeb_2.25-2_amd64.udeb
 ab25bc8644dc88dc8b3ed41c5360fc514c48353c 886688 cfdisk-udeb_2.25-2_amd64.udeb
 09323c3251c64b1ad206efe5d674d405362e5b3a 151764 libblkid1_2.25-2_amd64.deb
 a917fc40fd175ab17de4cdfb187ff27874aa1c6e 98000 libblkid1-udeb_2.25-2_amd64.udeb
 b6368370a3b0860faf7c13f60f90254688203cd9 175716 libblkid-dev_2.25-2_amd64.deb
 ac2cadabd47ea52d46a7ae98d475dfc2b8add37d 159436 libmount1_2.25-2_amd64.deb
 756ee87c705273a9618aacd4eb5dc4956c8e95d6 176454 libmount-dev_2.25-2_amd64.deb
 00a5711844aff46151c3005ed58bfb91b0d125f7 106186 libsmartcols1_2.25-2_amd64.deb
 e9e8df92675bd3545ab5bb199f3b07e76a901e51 52378 libsmartcols1-udeb_2.25-2_amd64.udeb
 c76fc2e05a2f1d20a928eab4ca81f90d8c2547aa 116090 libsmartcols-dev_2.25-2_amd64.deb
 85baf0a76872f5399ffdd385d7923e64cdc603d1 60800 libuuid1_2.25-2_amd64.deb
 ee18fb853d4a6d044230410a4f158893e13d296d 70560 uuid-runtime_2.25-2_amd64.deb
 3dd34c0354cafdd729dda8dfc593c4bb15d71e20 7112 libuuid1-udeb_2.25-2_amd64.udeb
 8dbca76a14337b1778ca40a214a26494e541f9bc 75124 uuid-dev_2.25-2_amd64.deb
 c11c8d5ebc904816f8abcf7ddca2e61e5cb7d3fd 27672 util-linux-udeb_2.25-2_amd64.udeb
 56d3df7718858df6246c4cec2be91e3c78c78b3e 90598 bsdutils_2.25-2_amd64.deb
Checksums-Sha256:
 bc439fcf9d9a29718a046ad94a18b0cf6edd7e894e21db17d751317a8d90f208 2803 util-linux_2.25-2.dsc
 8006c53bc43911fa8ad3824c30e90dc00d4c9938dd47e7139f0dd81926c7a714 81656 util-linux_2.25-2.debian.tar.xz
 f47587ee668b4d9a34a5ff8da46321301dc98d9b6af3097c8b52d6f946956766 856376 util-linux_2.25-2_amd64.deb
 a57631853d5e20bfd23e8ba38800ee2c4dc4c3238b83b9edf735a6f5327bff26 803802 util-linux-locales_2.25-2_all.deb
 b3cab2a939649e39460806c876d08383553223817303b054d27421c6736da0a4 164568 mount_2.25-2_amd64.deb
 34e3d394224d53622127c1f70a677252231847f9a5189332fda9699fb9330cb2 120306 fdisk-udeb_2.25-2_amd64.udeb
 d201310ee4fe0ee280e8bda0ac4d5a0bb77ccb9b46acb1e1885d0445742af107 886688 cfdisk-udeb_2.25-2_amd64.udeb
 5e4c7bdb7ed9f4df9f2e5d77124923b820cfd01c1539f71e0a548e53070a5f55 151764 libblkid1_2.25-2_amd64.deb
 78f8e28b18bbfa7560d1e05a1bedd2676d86a1a20f1e7cbef7149b787470e79c 98000 libblkid1-udeb_2.25-2_amd64.udeb
 d25adeeba6f8947c2d8fb8c697795335a6968cfa2fdc8a0df07ff7ceca430664 175716 libblkid-dev_2.25-2_amd64.deb
 9b5bfa37e53f178985e526efa3dc1c1d8023f2fd4cf31103b9694e4db552c1db 159436 libmount1_2.25-2_amd64.deb
 36a718308a8a22746d9f33aadcaf1182b5bbe4feecc5eb7f5e7a62180a27f765 176454 libmount-dev_2.25-2_amd64.deb
 9c6e301eeda62b0a1f916e30a5553ce2374f752b5591858facd53c425bcd172a 106186 libsmartcols1_2.25-2_amd64.deb
 3b0eeef7a470b48c7115ccd29b68aa9ea054137bf5204da9d85c1549b109777f 52378 libsmartcols1-udeb_2.25-2_amd64.udeb
 5a5a8eb28a386896554995498e1bc46a3c2debb0612ed750bed24b4ac4a571c2 116090 libsmartcols-dev_2.25-2_amd64.deb
 b0000b422c73dc335ca304df8a510d15e081066e35b5d6d9b51d2a81b38e1edc 60800 libuuid1_2.25-2_amd64.deb
 69406a0c149a1e56e40529e643483313c804a47a1ed0968289e6e97b32956936 70560 uuid-runtime_2.25-2_amd64.deb
 e2e6c750bf180c523a3d88097379e4425b180e1c6a46ab78ab5d27f0b4068efb 7112 libuuid1-udeb_2.25-2_amd64.udeb
 a902e05298df6ce61c1bb17ddca4f502e74e5e98148205fb0d6229f831d54caf 75124 uuid-dev_2.25-2_amd64.deb
 456dc3ebfaad867df9e6dea6034a3bb449744e793832f916aeb11d3230912943 27672 util-linux-udeb_2.25-2_amd64.udeb
 5e813ca39a3f86bdd1377058848f9715d6bfad742d6658212f1e75bace221f05 90598 bsdutils_2.25-2_amd64.deb
Files:
 5ce8cbc703377e460c9d990b095e5a71 856376 utils required util-linux_2.25-2_amd64.deb
 2a8083aa88e086542efbe977a18fb224 803802 localization optional util-linux-locales_2.25-2_all.deb
 37e3381558bd5c4c05f86188da1be988 164568 admin required mount_2.25-2_amd64.deb
 63109a9f9f7d6c88db11e037ca4a140d 120306 debian-installer extra fdisk-udeb_2.25-2_amd64.udeb
 41ce41d6215befecd926ad3e054f4354 886688 debian-installer extra cfdisk-udeb_2.25-2_amd64.udeb
 6f8315078a85ac4838a788c74fc1daac 151764 libs required libblkid1_2.25-2_amd64.deb
 2b87815696f5598b5fcdee360feed94b 98000 debian-installer optional libblkid1-udeb_2.25-2_amd64.udeb
 36f661ea0ff08a18aca89b0c26abb159 175716 libdevel extra libblkid-dev_2.25-2_amd64.deb
 4bce3da14743c5aee93e13ebfbb2cfe8 159436 libs required libmount1_2.25-2_amd64.deb
 7e28cc58ed77c40c4fa0739e7834a37a 176454 libdevel extra libmount-dev_2.25-2_amd64.deb
 5e4374912b9e6da7369de78f9464c9b1 106186 libs required libsmartcols1_2.25-2_amd64.deb
 536b1b11847b53b3ccbc4b2e1b6ce460 52378 debian-installer optional libsmartcols1-udeb_2.25-2_amd64.udeb
 3c0a718bfb63022bf65475cf968d0962 116090 libdevel extra libsmartcols-dev_2.25-2_amd64.deb
 3d880312977c93f7f6b3ffacb485d88a 60800 libs required libuuid1_2.25-2_amd64.deb
 d0c7a54fcc03f50a7c845ec08474c7f0 70560 libs optional uuid-runtime_2.25-2_amd64.deb
 453b83adce2f264d3bfd016cc8bf4f6a 7112 debian-installer optional libuuid1-udeb_2.25-2_amd64.udeb
 c3510a53504791d9a93b3927e031199a 75124 libdevel extra uuid-dev_2.25-2_amd64.deb
 0e54bc6214292b44ce20308dbaff38e5 27672 debian-installer optional util-linux-udeb_2.25-2_amd64.udeb
 540e2dc1749270bd608e0d62d10d105c 90598 utils required bsdutils_2.25-2_amd64.deb
 4750f56ca0dcbeaf7277175092ed9877 2803 base required util-linux_2.25-2.dsc
 1063144f2516588da2e51119e9137d8a 81656 base required util-linux_2.25-2.debian.tar.xz
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlPRoYcACgkQcgQ2cL3l8e5yPACfe2+9pLTgOOzDzcya6m48Yym1
Z1kAmgJMfFT8NsvEP9tcmnm07/9V9z8o
=fYNo
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: