Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 386235

Summary: sys-kernel/gentoo-sources-{3.0.6,3.1.5,3.4.20,?} - Will not boot encrypted /
Product: Gentoo Linux Reporter: brent <brent.saner>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED NEEDINFO    
Severity: normal CC: brent.saner
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: linux-3.x-regression
Package list:
Runtime testing required: ---
Attachments: genkernel.conf
.config for gentoo-sources-3.0.6
.config for gentoo-sources-3.1.5
genkernel.conf (3.4.20)
dracut.conf (013-r2)
cannot detect encrypted volume on /dev/md1
grub menu.lst (0.97-r10)
dracut cannot load module.dep for 3.1.5
tada. this is dracut again; still giving the same error as genkernel.
genkernel initrd for 2.6.38-r5 with 3.1.5 kernel

Description brent 2011-10-08 08:28:43 UTC
relevant packages (let me know if you want USE flags):

sys-boot/grub-0.97-r10
sys-kernel/genkernel-3.4.18
sys-kernel/gentoo-sources-3.0.6
sys-fs/cryptsetup-1.2.0-r1
sys-fs/mdadm-3.1.5
sys-fs/udev-171-r2

entry from menu.lst:
title=Gentoo Linux (3.0.6-gentoo)
root (hd0,2)
kernel /boot/kernel-praetorian-kernel-x86_64-3.0.6-gentoo root=/dev/ram0 init=/linuxrc ramdisk=8192 crypt_root=/dev/md1 real_root=/dev/mapper/root udev video=radeon:mtrr:3,ywrap,1900x1200-24@75 vga=791 splash=verbose,theme:gentoo console=tty1 domdraid domdadm rootfstype=ext4
initrd /boot/initramfs-praetorian-kernel-x86_64-3.0.6-gentoo


when attempting to boot my LUKS-encrypted mdadm RAID-1 from grub legacy, it does not recognize the filesystem type.

please note that this occurs only with gentoo-sources-3.x; I am able to boot successfully with gentoo-sources-2.6.38.

please let me know if you require any further information.
Comment 1 brent 2011-10-08 08:29:04 UTC
zsh 13235 % emerge --info
Portage 2.1.10.23 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 2.6.38-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_X9100_@_3.06GHz-with-gentoo-2.1
Timestamp of tree: Sat, 08 Oct 2011 06:45:01 +0000
distcc[21151] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc.log: Permission denied [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.7-r2, 2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise games dev-zero local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs candy distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://www.cyberuse.com/gentoo/ http://gentoo.wetzlmayr.com/ http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/sunrise /var/lib/layman/games /var/lib/layman/dev-zero /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="64bit X a52 aac aalib accessibility acl acpi akamaru alsa amd64 animgif ao applet ares async asyncns atmo automount avahi banshee bash-completion berkdb bidi bluetooth bluez bonjour bookmarks branding bzip2 cairo caps cdda cddax cddb cdinstall cdio cdr cli colordiff consolekit cpulimit cracklib crypt css cups curl cxx dbus dc1394 device-mapper dga dirac directfb disk-partition diskio djvu double-precision dri dts dv dvb dvd dvdr dvdread eds elf emboss emerald empathy encode esd evo exif extensible extras faac faad fam fbcon fbcondecor festival ffmpeg firefox flac flash fluidsynth fontconfig freetts fuse gajim games gcrypt gdbm gdu gedit ggi gif gimp glitz gnome gnome-keyring gnomecd gnutls gpg gphoto2 gpm gsm gstreamer gtk h323 hdaps hddtemp howl-compat html httpd iconv icu id3tag idn ieee1394 imagemagick imap ipc ipod iproute2 ipv6 irda jack java jpeg jpeg2k kerberos krb5 kvm lame laptop lcms ldap libass libcaca libnotify libsamplerate libssh2 libsysfs libv4l2 libwww lirc live lm_sensors loop-aes lua lzo mad matroska mbrola mdnsresponder-compat mfd-rewrites mikmod mmap mmx mng modplug modules mono motif mp3 mp4 mpeg mudflap multilib multislot musepack nautilus ncurses network nls nntp nptl nptlonly nsplugin nss offensive ogg openexr opengl openmp openssl openstreetmap optimisememory overlays pam pango pcap pcapnav pcre pda pdf php pic pidgin png policykit ppds pppd pulseaudio pvr qt3 qt3support qt4 quicktime quotas radius raster raw rawio readline remoteosd rtsp samba sasl scanner schroedinger scripting sdl sdl-image seamonkey session shout sip skey skins smbkrb5passwd smp smux socks5 sounds speex spell sse sse2 ssl startup-notification stream svg sysfs syslog taglib tcpd theora threads tiff timezone tk tools tpctlir truetype twolame udev unicode upnp usb utils v4l v4l2 vala vcdinfo vcdx vde videos vim-pager vim-syntax vim-with-x vlm vorbis webkit winbind wmf x264 xattr xext xinerama xinetd xml xorg xosd xpm xulrunner xv xvid zeroconf zlib zsh-completion zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="directory enigma13 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text cfontzpacket cwlinux ea65 eyeboxone g15 graphlcd i2500vfd icpa106 imon imonlcd iowarrior irtrans lcterm lis md8800 ms6931 mtcs16209x noritakevfd picolcd pyramid sed1330 sed1520 serialpos serialvfd shuttlevfd sli stv5730 t6963 tyan ula200 xosd" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx radeonhd radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 brent 2011-10-08 08:34:01 UTC
Created attachment 289189 [details]
genkernel.conf
Comment 3 brent 2011-10-08 08:34:37 UTC
screen output can be viewed at http://jyt.su/images/error.jpg

(file was too large to attach)
Comment 4 Alexander E. Patrakov 2011-10-09 11:25:15 UTC
Looks more like genkernel or bootloader bug to me, as your screenshot doesn't show any message from genkernel. But I am not 100% sure.

Could you please confirm that you have correctly specified the initramfs created by genkernel in your menu.lst file?

Could you please also try (for the purpose of isolating the fault) using dracut (which is distro-neutral) instead of gentoo-specific "genkernel" initramfs generator?
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-10-09 20:30:24 UTC
Can you please attach your kernel .config?
Comment 6 brent 2011-10-10 07:18:19 UTC
Created attachment 289429 [details]
.config for gentoo-sources-3.0.6
Comment 7 brent 2011-10-10 07:19:10 UTC
it's currently 0314EST; i'll give dracut a report tomorrow and let you know the results. thanks. :)
Comment 8 brent 2011-12-26 13:14:43 UTC
whoops. i totally forgot about this.

here's some updates:

1.) the same issue occurs when using dracut.
2.) however, i can definitely successfully mount the volumes in the rescue shell of dracut via cryptsetup, and it correctly sets up my md0/1.

i'm going to include more updated configs.

below is my make.conf in case anything changed since.


zsh 16364 % emerge --info
Portage 2.1.10.41 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r1, 2.6.38-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_X9100_@_3.06GHz-with-gentoo-2.1
Timestamp of tree: Mon, 26 Dec 2011 08:45:01 +0000
distcc[12076] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc.log: Permission denied [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.7-r2, 2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1, 2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo sunrise games dev-zero local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /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"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs candy distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://www.cyberuse.com/gentoo/ http://gentoo.wetzlmayr.com/ http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/sunrise /var/lib/layman/games /var/lib/layman/dev-zero /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="64bit X a52 aac aalib accessibility acl acpi akamaru alsa amd64 animgif ao applet ares async asyncns atmo automount avahi banshee bash-completion berkdb bidi bluetooth bluez bonjour bookmarks branding bzip2 cairo caps cdda cddax cddb cdinstall cdio cdr cli colordiff consolekit cpulimit cracklib crypt css cups curl cxx dbus dc1394 device-mapper dga dirac directfb disk-partition diskio djvu double-precision dri dts dv dvb dvd dvdr dvdread eds elf emboss emerald empathy encode esd evo exif extensible extras faac faad fam fbcon fbcondecor festival ffmpeg firefox flac flash fluidsynth fontconfig freetts fuse gajim games gcrypt gdbm gdu gedit ggi gif gimp glitz gnome gnome-keyring gnomecd gnutls gpg gphoto2 gpm gsm gstreamer gtk h323 hdaps hddtemp howl-compat html httpd iconv icu id3tag idn ieee1394 imagemagick imap ipc ipod iproute2 ipv6 irda jack java jpeg jpeg2k kerberos krb5 kvm lame laptop lcms ldap libass libcaca libnotify libsamplerate libssh2 libsysfs libv4l2 libwww lirc live lm_sensors loop-aes lua lzo mad matroska mbrola mdnsresponder-compat mfd-rewrites mikmod mmap mmx mng modplug modules mono motif mp3 mp4 mpeg mudflap multilib multislot musepack nautilus ncurses network nls nntp nptl nptlonly nsplugin nss offensive ogg openexr opengl openmp openssl openstreetmap optimisememory overlays pam pango pcap pcapnav pcre pda pdf php pic pidgin png policykit ppds pppd pulseaudio pvr qt3 qt3support qt4 quicktime quotas radius raster raw rawio readline remoteosd rtsp samba sasl scanner schroedinger scripting sdl sdl-image seamonkey session shout sip skey skins smbkrb5passwd smp smux socks5 sounds speex spell sse sse2 ssl startup-notification stream svg sysfs syslog taglib tcpd theora threads tiff timezone tk tools tpctlir truetype twolame udev unicode upnp usb utils v4l v4l2 vala vcdinfo vcdx vde videos vim-pager vim-syntax vim-with-x vlm vorbis webkit winbind wmf x264 xattr xext xinerama xinetd xml xorg xosd xpm xulrunner xv xvid zeroconf zlib zsh-completion zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="directory enigma13 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="biosdevname caps crypt crypt-gpg dmraid gensplash mdraid multipath syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text cfontzpacket cwlinux ea65 eyeboxone g15 graphlcd i2500vfd icpa106 imon imonlcd iowarrior irtrans lcterm lis md8800 ms6931 mtcs16209x noritakevfd picolcd pyramid sed1330 sed1520 serialpos serialvfd shuttlevfd sli stv5730 t6963 tyan ula200 xosd" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx radeonhd radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 brent 2011-12-26 13:16:15 UTC
Created attachment 296983 [details]
.config for gentoo-sources-3.1.5
Comment 10 brent 2011-12-26 13:17:08 UTC
Created attachment 296985 [details]
genkernel.conf (3.4.20)
Comment 11 brent 2011-12-26 13:17:45 UTC
Created attachment 296987 [details]
dracut.conf (013-r2)
Comment 12 brent 2011-12-26 13:27:21 UTC
Created attachment 296991 [details]
cannot detect encrypted volume on /dev/md1

this is built via genkernel. please reference my grub.conf- perhaps my options are wrong?
Comment 13 brent 2011-12-26 13:28:17 UTC
Created attachment 296993 [details]
grub menu.lst (0.97-r10)
Comment 14 brent 2011-12-26 13:29:56 UTC
Created attachment 296995 [details]
dracut cannot load module.dep for 3.1.5

i'm not even sure if this is related, but i saw this message frequently in the scrollback.
Comment 15 brent 2011-12-26 13:30:42 UTC
Created attachment 296997 [details]
tada. this is dracut again; still giving the same error as genkernel.
Comment 16 brent 2011-12-26 13:33:46 UTC
Created attachment 296999 [details]
genkernel initrd for 2.6.38-r5 with 3.1.5 kernel

i didn't even expect a 2.6.x initramdisk to even work with 3.x, but perhaps this is a clue that this may be a kernel issue, and not an initramdisk issue?

interestingly, as i stated in regards to dracut i could actually mount the encrypted software-raided / in the rescue shell. so perhaps this is instead the system recognizing it needs to check for an encrypted volume AFTER the mdadm volume instead of, i presume, vice versa.
Comment 17 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-12 16:04:05 UTC
Does this still happen on a recent kernel?