Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258352 - sys-kernel/gentoo-sources-2.6.28-r1: missing /sys
Summary: sys-kernel/gentoo-sources-2.6.28-r1: missing /sys
Status: RESOLVED DUPLICATE of bug 258442
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 18:20 UTC by brent
Modified: 2009-02-12 14:55 UTC (History)
0 users

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


Attachments
.config for 2.6.28 (config.2.6.28.gz,19.39 KB, text/plain)
2009-02-09 23:24 UTC, brent
Details
plaintext config for 2.6.28 (config.2.6.28,78.92 KB, text/plain)
2009-02-09 23:25 UTC, brent
Details
plaintext config for 2.6.28-r1 (config.2.6.28-r1,82.93 KB, text/plain)
2009-02-09 23:26 UTC, brent
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brent 2009-02-09 18:20:59 UTC
whenever i try to boot my gentoo-2.6.28-r1 kernel, i get an error spamming the console. i forget the exact terminology, but i believe it's:

"FATAL: modules: /sys not mounted"


it works fine when i roll back to gentoo-2.6.28 and i can even use the gentoo-2.6.28-r1 initramfs. if i try to use the kernel of that version, however, i get that above-mentioned error and it spits me into my initramfs' busybox.

-i am using genkernel (ver. 3.4.10.903)
-i have already tried rebuilding the kernel via genkernel but no luck
-i was previously able to boot this kernel up until today
-i ran an emerge -uDNv world yesterday, i think this issue may possibly be tied to my (re-?)emerging sys-apps/module-init-tools-3.6


OR
i just noticed this:
https://bugzilla.redhat.com/show_bug.cgi?id=484552

it seems tied to a libnuma but i have no idea what ebuild that would fall under in gentoo's portage.
Comment 1 brent 2009-02-09 18:21:15 UTC
zsh 3079 % emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo i686)
=================================================================
System uname: Linux-2.6.28-gentoo-i686-Intel-R-_Core-TM-2_Extreme_CPU_X9000_@_2.80GHz-with-glibc2.0
Timestamp of tree: Mon, 09 Feb 2009 17:45:01 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r13, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.5
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/ikelos /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi ads alsa async audit automount avahi avi bash-completion bashcompletion berkdb branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus divx divx4linux dri dv dvd dvdr dvdread eds emboss encode esd evo examples fam fbcon fbcondecor ffmpeg firefox flac fortran gcrypt gdbm geoip gif glitz gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv idea ipv6 irda isdnlog jpeg kerberos lame ldap libnotify live loop-aes lzo mad midi mikmod mjpeg mp3 mpeg mudflap mysql ncurses networkmanager nls nptl nptlonly nss offensive ogg openal opengl openmp pam passwordsave pcre pdf perl pkcs11 plugins png ppds pppd profile python qt3 qt3support qt4 quicktime readline reflection samba sdl session slang speex spell spl ssl startup-notification svg sysfs syslog tcpd theora threads tiff truetype unicode usb utils vcd vidix vim-syntax vorbis wifi win32codecs winbind wireshark x86 xcb xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 brent 2009-02-09 22:22:22 UTC
just some updated info-


the message spammed is actually "modprobe: FATAL: /sys is not mounted"


this is bugging the crap out of me.
Comment 3 George Kadianakis (RETIRED) gentoo-dev 2009-02-09 22:39:23 UTC
Could we have the .config of your 2.6.28-r1 kernel and the config of your 2.6.28 kernel?

Also, please don't change the severity field of the bug. It would be a waste of panic in case this is not actually a bug. 
Rest assured that we pay attention to every bug that appears in here :)
Comment 4 brent 2009-02-09 23:14:27 UTC
ah! terribly sorry- i noticed it was changed after i updated it. i thought i had originally marked it critical and then thought i was mistaken.. guess i wasn't. :)

i'll include the .configs for both as .gz and a plaintext diff of the two for ease of comparison in just a second
Comment 5 George Kadianakis (RETIRED) gentoo-dev 2009-02-09 23:22:36 UTC
(In reply to comment #4)
> ah! terribly sorry- i noticed it was changed after i updated it. i thought i
> had originally marked it critical and then thought i was mistaken.. guess i
> wasn't. :)
> 

No problem :)

> i'll include the .configs for both as .gz and a plaintext diff of the two for
> ease of comparison in just a second
> 

Thanks for trying to making it easier for us by supplying a .gz archive, but please, simply, attach the two .config text files. Giving out archives means one more step for someone who wants to help.
Comment 6 brent 2009-02-09 23:24:46 UTC
Created attachment 181498 [details]
.config for 2.6.28
Comment 7 brent 2009-02-09 23:25:40 UTC
Created attachment 181499 [details]
plaintext config for 2.6.28
Comment 8 brent 2009-02-09 23:26:11 UTC
Created attachment 181500 [details]
plaintext config for 2.6.28-r1
Comment 9 brent 2009-02-09 23:27:12 UTC
(In reply to comment #5)
> Thanks for trying to making it easier for us by supplying a .gz archive, but
> please, simply, attach the two .config text files. Giving out archives means
> one more step for someone who wants to help.
> 

sorry. planned on attaching a plaintext diff just to make it easier :) but the two .configs are now attached
Comment 10 George Kadianakis (RETIRED) gentoo-dev 2009-02-10 03:13:43 UTC
Alright, the "modprobe: FATAL: /sys is not mounted" is definitely a product of 
module-init-tools-3.6's (3.5 didn't contain that check) modprobe, which checks to see if /sys/module exists in handle_module().
What confuses me, is that initramfs uses an insmod wrapper called modprobe, instead of the normal userspace modprobe coming from module-init-tools. That initramfs modprobe contains no checks/FATAL errors regarding sysfs whatsoever.
We also see that in genkernel-3.4.10.903's defaults/linuxrc mount_sysfs happens before any modprobing takes place.

So, for a reason I don't quite grasp yet, the modprobe tool from 
module-init-tools-3.6 tries to check if /sys/module exists, fails and *spits you back to your initramfs' busybox*. Which is even more mysterious, since that means that the rootfs that initramfs was on, did not get overmounted, init was called and somehow you got threw back to initramfs which shouldn't had been there at that time.

And beyond all that, it's also a 2.6.28-r1 regression (?!). Could you, please, check again if 2.6.28 will boot alright with the same module-init-tools and genkernel versions as with 2.6.28-r1?

(There is also a high chance that all the above are actually BS. I'm gonna take another look, tomorrow, to see how all the above can be linked  together to produce a fix (or a sci-fi book))
Comment 11 brent 2009-02-10 04:38:04 UTC
(In reply to comment #10)
> Alright, the "modprobe: FATAL: /sys is not mounted" is definitely a product of 
> module-init-tools-3.6's (3.5 didn't contain that check) modprobe, which checks
> to see if /sys/module exists in handle_module().
> What confuses me, is that initramfs uses an insmod wrapper called modprobe,
> instead of the normal userspace modprobe coming from module-init-tools. That
> initramfs modprobe contains no checks/FATAL errors regarding sysfs whatsoever.
> We also see that in genkernel-3.4.10.903's defaults/linuxrc mount_sysfs happens
> before any modprobing takes place.
> 
> So, for a reason I don't quite grasp yet, the modprobe tool from 
> module-init-tools-3.6 tries to check if /sys/module exists, fails and *spits
> you back to your initramfs' busybox*. Which is even more mysterious, since that
> means that the rootfs that initramfs was on, did not get overmounted, init was
> called and somehow you got threw back to initramfs which shouldn't had been
> there at that time.
> 
> And beyond all that, it's also a 2.6.28-r1 regression (?!). Could you, please,
> check again if 2.6.28 will boot alright with the same module-init-tools and
> genkernel versions as with 2.6.28-r1?
> 
> (There is also a high chance that all the above are actually BS. I'm gonna take
> another look, tomorrow, to see how all the above can be linked  together to
> produce a fix (or a sci-fi book))
> 


and here's the REALLY confounding (yet clarifying) thing- if i wait through 20 or 30 seconds or so of being spammed by those errors, OpenRC starts up and starts init-ing things. however, it takes longer than normal with the error message still spamming the console. once it initializes a certain script, i suppose (didn't take note which one it was), it STOPS spamming the console and the rest of the inits load as speedily as before.


so i'm not sure there..


i did doublecheck, however, and i only get this behaviour with the 2.6.28-r1 kernel.
Comment 12 George Kadianakis (RETIRED) gentoo-dev 2009-02-10 18:03:50 UTC
Would you be kind enough to try the latest stable vanilla kernel (2.6.28.4) off kernel.org? 
If the bug appears in the vanilla kernel too, I'm gonna ask you to use git bisect between 2.6.28 and 2.6.28.1 to find out which commit introduced the bug. But let's see if the issue is fixed in the latest kernel releases, first.
Comment 13 SpanKY gentoo-dev 2009-02-12 14:55:29 UTC

*** This bug has been marked as a duplicate of bug 258442 ***