who -b does not report the time of the last system boot correctly.

Bug #1861034 reported by Michael Yam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

"who -b" always returns the "birth of Unix"

         system boot 1969-12-31 19:00

regardless of when the system was rebooted. It should return the time when the system was rebooted. In contrast, "uptime" works correctly.

I've observed this bug only on Raspian (the older Debian 4.1.19+ works correctly).

uname -a:
Linux babylon5 4.19.93+ #1290 Fri Jan 10 16:34:37 GMT 2020 armv6l GNU/Linux

dpkg --list coreutils:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii coreutils 8.30-3 armhf GNU core utilities

Tags: who
Revision history for this message
peter green (plugwash) wrote :

I suspect this relates to the raspbery pi's lack of real time clock, meaning a sane time isn't established until later in the boot process (first by fake-hwclock restoring a saved time, then later by ntp applying corrections from the network).

Revision history for this message
Michael Yam (myam) wrote :

That's a pretty reasonable assessment. As bugs go, this one is a minor inconsistency.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.