Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225249 - stabilize sys-kernel/genkernel-3.4.10.906 to avoid LVM2 root/boot problems
Summary: stabilize sys-kernel/genkernel-3.4.10.906 to avoid LVM2 root/boot problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2008-06-07 17:19 UTC by Sylvain BERTRAND
Modified: 2010-12-10 10:46 UTC (History)
12 users (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 Sylvain BERTRAND 2008-06-07 17:19:00 UTC
lvm2-2.02.28 used in genkernel 3.4.10-r1 must have deprecated sysfs files from kernel 2.6.25 in order to work.

Portage 2.1.5.4 (default/linux/x86/2008.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.25.4 i686)
=================================================================
System uname: 2.6.25.4 i686 Intel(R) Pentium(R) M processor 2.00GHz
Timestamp of tree: Sat, 07 Jun 2008 09:45:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ "
LANG="fr_FR.UTF-8"
LDFLAGS=""
LINGUAS="fr"
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/portage/local/layman/killwilly"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa apache2 audiofile bash-completion bluetooth branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cscope cups curl dbus dri dts dvd dvdr dvdread eds emboss encode evo exif fam ffmpeg fftw firefox flac gdbm git glitz gnutls gstreamer gtk hal iconv idn ipv6 isdnlog jabber javascript jpeg jpeg2k libnotify libsamplerate mad matroska midi mikmod mmap mmx modplug mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection session sndfile spell spl sse sse2 ssl startup-notification svg symlink theora threads tiff truetype unicode vim-syntax vorbis wifi wxwindows x86 xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="i810 none"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-07 17:54:13 UTC
I fail to see how genkernel is related. A proper description of the problem is also lacking. Do you have some error messages to show? Or a patch, perhaps?
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-07 18:44:46 UTC
wolf31o2: You need to update the default kernel configs to enable CONFIG_SYSFS_DEPRECATED in newer kernels, as the older LVM accesses sys files that are removed in newer kernels. Either that, or go up to a newer LVM.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2008-06-28 07:39:01 UTC
What version would you recommend?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-28 08:50:50 UTC
2.02.37 if you take the LVM bumping path.
Turning on the sysfs files is probably the safest overall option however.
Comment 5 Chris Gianelloni 2008-11-03 12:55:46 UTC
We'll get this fixed by 3.4.11's release.
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2009-07-12 16:37:52 UTC
I've enabled CONFIG_SYSFS_DEPRECATED in the x86/x86_64 kernel-config files. Oddly, it was enabled for all arches except those.
Comment 7 Matthias Schwarzott gentoo-dev 2009-07-14 12:39:59 UTC
I don't think CONFIG_SYSFS_DEPRECATED is a good idea (besides that the name itself says it is deprecated).
Even the stable udev version sys-fs/udev-141 does print this message at startup:
"udev: deprecated sysfs layout; update the kernel or disable CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly"

udev-142 and later will not work with CONFIG_SYSFS_DEPRECATED!
Comment 8 Craig Andrews gentoo-dev 2009-08-10 19:24:35 UTC
udev-145 is now in ~amd64, which according to comment #7 won't work with CONFIG_SYSFS_DEPRECATED=y. Genkernel requires CONFIG_SYSFS_DEPRECATED=y... so there doesn't seem to be a workable combination. What do I do?
Comment 9 Matthias Schwarzott gentoo-dev 2009-08-10 19:36:44 UTC
(In reply to comment #8)
> udev-145 is now in ~amd64, which according to comment #7 won't work with
> CONFIG_SYSFS_DEPRECATED=y. Genkernel requires CONFIG_SYSFS_DEPRECATED=y... so
> there doesn't seem to be a workable combination. What do I do?
> 
For now udevd does print a warning:
  udev: missing sysfs features; please update the kernel 
  or disable the kernel's CONFIG_SYSFS_DEPRECATED option; 
  udev may fail to work correctly
then waits 3 seconds and continues.
The wait is enlarged to 15 seconds for udev-146 to really annoy.

So I suggest you add the mentioned patch to genkernel, and then disable all DEPRECATED options for your kernel.

Patch is here:
http://git.wolf31o2.org/gitweb/?p=projs/genkernel.git;a=commit;h=229d8ef4f123e481bccdb2edcd5297d52cdfb092

@maintainer:
ping, please do a new release of git master.
If you find the time, next todo points are disable DEPRECATED options and updating the internal lvm2 version.
Comment 10 Christian Bricart 2009-08-10 21:23:56 UTC
please also see bug #255196 in combination
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-09-07 08:32:12 UTC
Because of the new udev, we MUST do the following ASAP in genkernel:
- Upgrade LVM version
- Disable CONFIG_SYSFS_DEPRECATED _and_ CONFIG_SYSFS_DEPRECATED_V2.
Comment 12 Lincoln A Baxter 2009-11-23 12:38:03 UTC
(In reply to comment #11)
> Because of the new udev, we MUST do the following ASAP in genkernel:
> - Upgrade LVM version
> - Disable CONFIG_SYSFS_DEPRECATED _and_ CONFIG_SYSFS_DEPRECATED

1/2 of this happened with a recent emerge --sync && --update which brought in the new LVM and a new udev (146-r1).

Disabling CONFIG_SYSFS_DEPRECATED (2.6.27-gentoo-r8) corrected the problem.
Comment 13 Malte Starostik 2009-11-27 18:54:01 UTC
On x86 with stable gentoo-sources-2.6.31-r6, genkernel-3.4.10.904, lvm2-2.02.51-r1 and without CONFIG_SYSFS_DEPRECATED_V2 (custom kernel config), the system is unbootable due to genkernel failing to use the system's lvm static binary.
Upgrading genkernel to 3.4.10.906 fixes this as it correctly considers /sbin/lvm.static for copying.

Please stabilize genkernel-3.4.10.906 to unbreak stable x86. Thanks!
Comment 14 Richard Scott 2009-11-28 13:42:40 UTC
(In reply to comment #13)
> Please stabilize genkernel-3.4.10.906 to unbreak stable x86. Thanks!

Why was the the lvm package released with out properly testing it?
What happened to the QA process?

I know mistakes happen... but a mistake that causes a total system failure is just sloppy work.
Comment 15 Ivan Mironov 2009-11-29 08:49:34 UTC
(In reply to comment #13)
> On x86 with stable gentoo-sources-2.6.31-r6, genkernel-3.4.10.904,
> lvm2-2.02.51-r1 and without CONFIG_SYSFS_DEPRECATED_V2 (custom kernel config),
> the system is unbootable due to genkernel failing to use the system's lvm
> static binary.
> Upgrading genkernel to 3.4.10.906 fixes this as it correctly considers
> /sbin/lvm.static for copying.

I have the same problem. And updating genkernel to 3.4.10.906 solves it.
Comment 16 Alan Hourihane 2009-12-06 20:08:17 UTC
Me too.

Please stabilize 3.4.10.906
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-12-17 04:02:15 UTC
.906 is now stable
Comment 18 Sebastian Pipping gentoo-dev 2010-12-10 10:46:09 UTC
I remove this bug from tracker bug #245389 "Features for inclusion by 3.4.11" as it seems unrelated.