Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61727 - init does not seem to put a system boot entry in utmp; so who -b has no output
Summary: init does not seem to put a system boot entry in utmp; so who -b has no output
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 79117 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-25 22:21 UTC by Martin Jackson (RETIRED)
Modified: 2005-01-23 18:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jackson (RETIRED) gentoo-dev 2004-08-25 22:21:38 UTC
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"
Comment 1 SpanKY gentoo-dev 2004-10-05 21:52:46 UTC
i'm a bit of a n00b, any idea how to generate that ?
Comment 2 SpanKY gentoo-dev 2004-10-13 20:56:15 UTC
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
Comment 3 SpanKY gentoo-dev 2004-10-13 22:28:59 UTC
ok, fixed in cvs

look for this in baselayout-1.11.3+

thanks :)
Comment 4 SpanKY gentoo-dev 2005-01-23 18:30:24 UTC
*** Bug 79117 has been marked as a duplicate of this bug. ***