Various utmp queries don't work as they do on other Linux/Unix systems, for example, who -a output from a Gentoo 2004.2 system: Aug 20 22:39 5386 id=rc term=0 exit=0 run-level 3 Aug 20 22:39 last=S Aug 20 22:40 6312 id=l3 term=0 exit=0 Aug 20 22:41 8449 id=c1 Meanwhile, who -a from a Mandrake 9.2 system is more traditional: Aug 13 08:23 13 id=si term=0 exit=0 system boot Aug 13 08:23 run-level 3 Aug 13 08:23 last=S Aug 13 08:25 559 id=l3 term=0 exit=0 Notice the system boot line. This is what is read by who -b. On the Mandrake system, it returns output, on the Gentoo system it doesn't. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: Gentoo should return text for who -b Portage 2.0.50-r10 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.8-gentoo) ================================================================= System uname: 2.6.8-gentoo i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X adns alsa apache2 apm arts avi berkdb cdr clamav crypt cups devfs26 doc dvd encode esd fam foomaticdb gd gdbm gif gnome gpm gtk gtk2 ieee1394 imap imlib innodb java jpeg kde ldap libg++ libwww lmtp mad mikmod motif mpeg mysql ncurses nls offensive oggvorbis opengl oss pam pcap pcre pdflib perl php png postgres python qt quicktime readline ruby samba sasl sdl slang spell sqlite ssl svga tcltk tcpd tetex threads truetype usb wxwindows x86 xfs xml2 xmms xv zlib"
i'm a bit of a n00b, any idea how to generate that ?
ok, the problem is in our bootmisc script ... we delete /var/run/utmp which, by that time, has the boot record you're looking for the question is, how do we clean out the file except for that one record :) i'll look it into it
ok, fixed in cvs look for this in baselayout-1.11.3+ thanks :)
*** Bug 79117 has been marked as a duplicate of this bug. ***