Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17219 - Nasty looking boot messages (baselayout)
Summary: Nasty looking boot messages (baselayout)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-10 09:05 UTC by Ian Smith
Modified: 2003-03-16 01:37 UTC (History)
0 users

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 Ian Smith 2003-03-10 09:05:44 UTC
Lots of unpleasant messages, won't be seen by people who boot unattended
straight into X.

NB. I have not actually seen any serious consequences of this so far, so
recording a low severity for now.

Reproducible: Always
Steps to Reproduce:
1. Boot up
2. Read messages
3. Worry ;)

Actual Results:  
Noticed the following messages (could only grab the first few, you know what
it's like trying to capture boot messages!).

INIT: version 2.84 booting
/sbin/rc: line 256: /mnt/.init.d/softlevel: Read-only file system
install: cannot create directory `/mnt/.init.d/failed': Read-only file system
install: cannot create directory `/mnt/.init.d/softscripts.new': Read-only file
system
ln: creating symbolic link `/mnt/.init.d/softscripts.new/bootmisc' to
`/etc/init.d/bootmisc': No such file or directory
ln: creating symbolic link `/mnt/.init.d/softscripts.new/checkfs' to
`/etc/init.d/checkfs': No such file or directory
ln: creating symbolic link `/mnt/.init.d/softscripts.new/checkroot' to
`/etc/init.d/checkroot': No such file or directory
ln: creating symbolic link `/mnt/.init.d/softscripts.new/clock' to
`/etc/init.d/clock': No such file or directory
ln: creating symbolic link `/mnt/.init.d/softscripts.new/consolefont' to
`/etc/init.d/consolefont': No such file or directory
ln: creating symbolic link `/mnt/.init.d/softscripts.new/hostname' to
`/etc/init.d/hostname': No such file or directory
ln: creating symbolic link `/mnt/.init.d/softscripts.new/keymaps' to
`/etc/init.d/keymaps': No such file or directory
ln: creating symbolic link `/mnt/.init.d/softscripts.new/localmount' to
`/etc/init.d/localmount': No such file or directory
ln: creating symbolic link `/mnt/.init.d/softscripts.new/modules' to `/etc/init.

Expected Results:  
The messages should not appear.

Looks like some of the contents of /etc/init.d are written successfully before
the problem occurs.

22 $ ls -la /mnt/.init.d/
total 28
drw-r--r--   12 root     root          300 Mar 10 12:46 ./
drwxr-xr-x   20 root     root         4096 Mar  5 12:49 ../
drwxr-xr-x   62 root     root         1240 Mar 10 12:44 after/
drwxr-xr-x   64 root     root         1280 Mar 10 12:44 before/
drwxr-xr-x    2 root     root           40 Mar 10 12:44 broken/
-rw-r--r--    1 root     root        11651 Mar 10 12:44 depcache
-rw-r--r--    1 root     root         4578 Mar 10 12:44 envcache
drwxr-xr-x   13 root     root          260 Mar 10 12:44 need/
drwxr-xr-x    3 root     root           60 Mar 10 12:46 options/
drwxr-xr-x    5 root     root          100 Mar 10 12:44 provide/
drwxr-xr-x    2 root     root           40 Mar 10 12:44 snapshot/
-rw-r--r--    1 root     root            8 Mar 10 12:44 softlevel
drwxr-xr-x    2 root     root          640 Mar 10 12:44 softscripts/
drwxr-xr-x    2 root     root          620 Mar 10 12:46 started/
drwxr-xr-x    9 root     root          180 Mar 10 12:44 use/

23 $ mount
/dev/hda3 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /mnt/.init.d type tmpfs (rw,mode=0644,size=2048k)
/dev/hda5 on /mnt/vast type ext3 (rw)
/dev/hdb3 on /mnt/scratch type ext3 (rw)
/dev/hdb5 on /mnt/monster type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)

24 $ df -aTh
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/hda3     ext3    6.1G  3.6G  2.2G  63% /
proc          proc       0     0     0   -  /proc
none         devfs       0     0     0   -  /dev
tmpfs        tmpfs    2.0M   28K  2.0M   2% /mnt/.init.d
/dev/hda5     ext3     87G   68G   20G  78% /mnt/vast
/dev/hdb3     ext3    6.1G  4.3G  1.5G  75% /mnt/scratch
/dev/hdb5     ext3    106G   56G   50G  53% /mnt/monster
tmpfs        tmpfs    252M     0  252M   0% /dev/shm
usbdevfs  usbdevfs       0     0     0   -  /proc/bus/usb


8 $ emerge info
Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0)
=================================================================
System uname: 2.4.20 i686 AMD Athlon(tm) XP 1800+
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo
http://mirrors.sunsite.dk/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/init.d /etc/xfce /etc/X11/xkb /etc/gconf /etc/env.d"
PORTDIR="/mnt/scratch/portage"
DISTDIR="/mnt/scratch/portage/distfiles"
PKGDIR="/mnt/scratch/portage/packages"
PORTAGE_TMPDIR="/mnt/scratch/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa
gdbm berkdb slang readline arts tetex bonobo svga java guile X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl cdr
samba mysql postgres odbc dvd -doc dga aalib fbcon mozilla sse tcltk mta-tls"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS=""
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-12 04:32:58 UTC
I would suggest using the currently masked baselayout 1.8.6.2
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-12 17:59:38 UTC
Or try a different kernel ?  I cannot see anything affecting a tmpfs mount
to behave like this, except if a kernel problem, or maybe if / is still ro,
and /etc/mtab is stale.  Maybe include contents of /proc/mounts as well.
Comment 3 Ian Smith 2003-03-13 07:12:43 UTC
Haven't rebooted yet - busy machine . . .  These look OK though.  Will reboot now!

221 $ cat /proc/mounts 
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime 0 0
none /dev devfs rw 0 0
proc /proc proc rw 0 0
tmpfs /mnt/.init.d tmpfs rw 0 0
/dev/hda5 /mnt/vast ext3 rw 0 0
/dev/hdb3 /mnt/scratch ext3 rw 0 0
/dev/hdb5 /mnt/monster ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0

222 $ cat /etc/mtab
/dev/hda3 / ext3 rw,noatime 0 0
proc /proc proc rw 0 0
none /dev devfs rw 0 0
tmpfs /mnt/.init.d tmpfs rw,mode=0644,size=2048k 0 0
/dev/hda5 /mnt/vast ext3 rw 0 0
/dev/hdb3 /mnt/scratch ext3 rw 0 0
/dev/hdb5 /mnt/monster ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
Comment 4 Ian Smith 2003-03-13 07:30:07 UTC
<rebooted>

The nasty boot messages have now gone away.  I upgraded baselayout and deleted /etc/mtab for good measure.  The kernel was a known good one so I left it as is.

Anyway, I now have both /mnt/.init.d AND /var/state/init.d viz:

2 $ ll /mnt/.init.d/
total 60
drwxr-xr-x   13 root     root         4096 2003-03-13 12:19 ./
drwxr-xr-x   20 root     root         4096 2003-03-05 12:49 ../
drwxr-xr-x   25 root     root         4096 2002-11-20 10:58 after/
drwxr-xr-x   26 root     root         4096 2002-11-20 10:58 before/
drwxr-xr-x    2 root     root         4096 2002-11-20 10:58 broken/
drwxr-xr-x    2 root     root         4096 2002-11-20 10:58 cache/
-rw-r--r--    1 root     root         4578 2003-03-13 12:19 envcache
-rw-r--r--    1 root     root            0 2002-11-19 23:56 .keep
drwxr-xr-x   10 root     root         4096 2002-11-20 10:58 need/
drwxr-xr-x    2 root     root         4096 2002-11-20 10:58 options/
drwxr-xr-x    3 root     root         4096 2002-11-20 10:58 provide/
drwxr-xr-x    2 root     root         4096 2002-11-20 10:58 snapshot/
drwxr-xr-x    2 root     root         4096 2002-11-20 10:58 softscripts/
drwxr-xr-x    2 root     root         4096 2002-11-20 10:58 started/
drwxr-xr-x    2 root     root         4096 2002-11-20 10:58 use/

(note envcache is current)

3 $ ll /var/state/init.d/
total 64
drwxr-xr-x   12 root     root         4096 2003-03-13 12:21 ./
drwxr-xr-x    3 root     root         4096 2003-03-13 12:10 ../
drwxr-xr-x   62 root     root         4096 2003-03-13 12:19 after/
drwxr-xr-x   64 root     root         4096 2003-03-13 12:19 before/
drwxr-xr-x    2 root     root         4096 2003-03-13 12:19 broken/
-rw-r--r--    1 root     root        11651 2003-03-13 12:19 depcache
drwxr-xr-x   13 root     root         4096 2003-03-13 12:19 need/
drwxr-xr-x    3 root     root         4096 2003-03-13 12:21 options/
drwxr-xr-x    5 root     root         4096 2003-03-13 12:19 provide/
drwxr-xr-x    2 root     root         4096 2003-03-13 12:19 snapshot/
-rw-r--r--    1 root     root            8 2003-03-13 12:20 softlevel
drwxr-xr-x    2 root     root         4096 2003-03-13 12:20 softscripts/
drwxr-xr-x    2 root     root         4096 2003-03-13 12:21 started/
drwxr-xr-x    9 root     root         4096 2003-03-13 12:19 use/


Is this right?  Also, there is a duplicate mount entry for / in df:

4 $ df
Filesystem    Type    Size  Used Avail Use% Mounted on
rootfs      rootfs    6.1G  3.6G  2.2G  63% /
/dev/root     ext3    6.1G  3.6G  2.2G  63% /
none         devfs       0     0     0   -  /dev
proc          proc       0     0     0   -  /proc
/dev/hda5     ext3     87G   69G   18G  80% /mnt/vast
/dev/hdb3     ext3    6.1G  4.4G  1.4G  76% /mnt/scratch
/dev/hdb5     ext3    106G   56G   50G  53% /mnt/monster
tmpfs        tmpfs    252M     0  252M   0% /dev/shm
usbdevfs  usbdevfs       0     0     0   -  /proc/bus/usb

I guess the new baselayout is experimental so I'm not losing too much sleep over this . . .  comments?
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-13 15:04:38 UTC
Update to 1.8.6.3 .... its fixed there.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-16 01:37:43 UTC
Will try to get the 1.8.6* versions in testing at least soonish.