Summary: | sys-fs/udev Incorrect create time of special files in /dev/* | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcin Mirosław <bug> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | CC: | roy, udev-bugs |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Marcin Mirosław
2009-10-23 08:33:04 UTC
Bios time is correct, it is in local time. Ech, one more thing, i'm not sure it's bug is more related to udev or to openrc. This is a system clock issue. Up to date kernels have a rtc driver and read system time at startup. They interprete the read time in UTC. What you want is that openrc does fixup system time or read hwclock before udev starts. Problem is a little peculiar for me, i've got a second machine with similar configuration, and version of openrc/udev (ACCEPT_KEYWORDS="~x86") but problem appear only at once machine. Still i don't know which difference between them is meanignful. Is /etc/localtime is a symlink and /usr is not on /? (In reply to comment #5) > Is /etc/localtime is a symlink and /usr is not on /? It would be too simple. /etc/localtime isn't symlink, it's regular file. I tried to reproduce this problem on 3 box. On the two of them problem appears (~amd64 and ~x86), but third box (~x86) behaves correctly. So the basic problem here is: The files have timestamps in the future. Does it work if you do 1. Add clock to the need lines in /etc/init.d/udev. 2. Add depend() { need clock } to /etc/init.d/udev-mount. 3. Add hwclock to runlevel sysinit. rc-update add hwclock sysinit (In reply to comment #7) > Does it work if you do > 3. Add hwclock to runlevel sysinit. > rc-update add hwclock sysinit This step 3 should be enough, as depend of hwclock contains "before *". (In reply to comment #7) > So the basic problem here is: The files have timestamps in the future. Yes, but only through one hour. (In reply to comment #8) > (In reply to comment #7) > > Does it work if you do > > 3. Add hwclock to runlevel sysinit. > > rc-update add hwclock sysinit > This step 3 should be enough, as depend of hwclock contains "before *". I added hwclock to runlevel. Now i'm getting: * /mounting/proc... hwclock |* SEtting system clock using hardware clock [Local] hwclock |RTC_RD_TIME: Niewlasciwy ioctl dla urzadzenia (in english: RTC_RD_TIME: Incorrect ioctl for device) hwclock |ioctl() to /dev/rtc to read the time failed. hwclock |* Failed to set the system clock ====================== # LC_ALL="en-US" ls -lah /dev/rtc* ls: cannot access /dev/rtc*: No such file or directory # mount --bind / /mnt/test/ # LC_ALL="en-US" ls -lah /mnt/test/dev/rtc* lrwxrwxrwx 1 root root 4 Aug 4 14:17 /mnt/test/dev/rtc -> rtc0 crw-r--r-- 1 root root 254, 0 Aug 4 14:17 /mnt/test/dev/rtc0 do you have the rtc drivers built into your kernel ? # zgrep -i rtc /proc/config.gz |grep -v "^#" CONFIG_HPET_EMULATE_RTC=y CONFIG_RTC_LIB=m CONFIG_RTC_CLASS=m CONFIG_RTC_INTF_SYSFS=y CONFIG_RTC_INTF_PROC=y CONFIG_RTC_INTF_DEV=y CONFIG_RTC_DRV_CMOS=m # lsmod | grep -i rtc rtc_cmos 9367 0 rtc_core 14801 1 rtc_cmos rtc_lib 2320 1 rtc_core hmm, udev's init script deps on fsck's init script which again pulls in clock before is this any of problem with >=sys-fs/udev-197-r3 and the new sys-fs/udev-init-scripts? Now I have installed sys-fs/udev-197-r5 and sys-fs/udev-init-scripts-22, files in /dev/* has correct time. (In reply to comment #13) > Now I have installed sys-fs/udev-197-r5 and sys-fs/udev-init-scripts-22, > files in /dev/* has correct time. no reason to keep this open then, thanks for checking honestly, i'm not sure why this ever mattered. nothing cares about those timestamps. |