Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40882 - genkernel's (3.0.1_beta9) generated initrd fails to unmount /dev resulting in errors
Summary: genkernel's (3.0.1_beta9) generated initrd fails to unmount /dev resulting in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-08 14:05 UTC by Andrew Zotoff
Modified: 2004-02-14 20:00 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 Andrew Zotoff 2004-02-08 14:05:19 UTC
A genkernel's generated inirtd fails to unmount /tmp/.initrd/dev at cleanup stage.
The problem seems to be that few kernel processes at the moment are already
using /tmp/.initrd/dev/console, and thus unmount fails with 'filesystem busy'.
This results in my root filesystem being mounted twice, first as ext3 and
second time as ext2.
And well, that is what for the line 'exec chroot . /sbin/init </dev/console >/dev/console 2>&1' must be used. but it does not help much: there are already other processes keeping it.


Reproducible: Always
Steps to Reproduce:
1. compile kernel with genkernel and install it
2. reboot
3. run mount after boot

well i do not remember doing anything special .. i just installed a genkernel's generated kernel.
Actual Results:  
/dev/hda2 on / type ext3 (rw,noatime) 
none on /tmp/.initrd/dev type devfs (rw) 
/dev/hda2 on / type ext2 (rw,noatime) 
 

Expected Results:  
/dev/hda2 on / type ext3 (rw,noatime) 

genkernel-3.0.1_beta9 
gentoo-sources-2.4.22-r5 
grub-0.93.20030118 
 
lsof after boot: 
# lsof /tmp/.initrd/dev|grep initrd 
keventd      2 root    0u   CHR    5,1        43 /tmp/.initrd/dev/console 
keventd      2 root    1u   CHR    5,1        43 /tmp/.initrd/dev/console 
keventd      2 root    2u   CHR    5,1        43 /tmp/.initrd/dev/console 
ksoftirqd    3 root    0u   CHR    5,1        43 /tmp/.initrd/dev/console 
ksoftirqd    3 root    1u   CHR    5,1        43 /tmp/.initrd/dev/console 
ksoftirqd    3 root    2u   CHR    5,1        43 /tmp/.initrd/dev/console 
kswapd       4 root    0u   CHR    5,1        43 /tmp/.initrd/dev/console 
kswapd       4 root    1u   CHR    5,1        43 /tmp/.initrd/dev/console 
kswapd       4 root    2u   CHR    5,1        43 /tmp/.initrd/dev/console 
bdflush      5 root    0u   CHR    5,1        43 /tmp/.initrd/dev/console 
bdflush      5 root    1u   CHR    5,1        43 /tmp/.initrd/dev/console 
bdflush      5 root    2u   CHR    5,1        43 /tmp/.initrd/dev/console 
kupdated     6 root    0u   CHR    5,1        43 /tmp/.initrd/dev/console 
kupdated     6 root    1u   CHR    5,1        43 /tmp/.initrd/dev/console 
kupdated     6 root    2u   CHR    5,1        43 /tmp/.initrd/dev/console 
mdrecover    7 root    0u   CHR    5,1        43 /tmp/.initrd/dev/console 
mdrecover    7 root    1u   CHR    5,1        43 /tmp/.initrd/dev/console 
mdrecover    7 root    2u   CHR    5,1        43 /tmp/.initrd/dev/console 
kcopyd       8 root    0u   CHR    5,1        43 /tmp/.initrd/dev/console 
kcopyd       8 root    1u   CHR    5,1        43 /tmp/.initrd/dev/console 
kcopyd       8 root    2u   CHR    5,1        43 /tmp/.initrd/dev/console 
kmirrord     9 root    0u   CHR    5,1        43 /tmp/.initrd/dev/console 
kmirrord     9 root    1u   CHR    5,1        43 /tmp/.initrd/dev/console 
kmirrord     9 root    2u   CHR    5,1        43 /tmp/.initrd/dev/console 
khubd      495 root    0u   CHR    5,1        43 /tmp/.initrd/dev/console 
khubd      495 root    1u   CHR    5,1        43 /tmp/.initrd/dev/console 
khubd      495 root    2u   CHR    5,1        43 /tmp/.initrd/dev/console 
# 
 
# emerge info 
Portage 2.0.50 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r5) 
================================================================= 
System uname: 2.4.22-gentoo-r5 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz 
Gentoo Base System version 1.4.3.10 
Autoconf: sys-devel/autoconf-2.58 
Automake: sys-devel/automake-1.8.2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe" 
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 /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://mirror.gentoo.ru/pub/mirror/gentoo/ 
http://mirror.tucdemonic.org/gentoo/ 
http://mirror.clarkson.edu/pub/distributions/gentoo/ 
http://lug.mtu.edu/gentoo/ http://gentoo.inode.at/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X acpi apm arts avi berkdb bindist crypt cscope curl dga dvd encode 
esd ethereal fam fbcon foomaticdb gdbm gif gpm gtk2 imlib javascript jpeg kde 
libg++ libwww mad mikmod mmx motif mpeg ncurses nls noaudio oggvorbis opengl 
oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl 
svga tcpd tiff truetype video_cards_radeon x86 xml2 xmms xv zlib"
Comment 1 Brad House 2004-02-14 20:00:35 UTC
_beta12 fixes this