Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618710 - Initramfs not initialize =sys-fs/lvm2-2.02.171
Summary: Initramfs not initialize =sys-fs/lvm2-2.02.171
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-17 02:21 UTC by Gabriel D'Ambrosio
Modified: 2017-10-12 16:30 UTC (History)
1 user (show)

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


Attachments
/etc/default/grub (default_grub,429 bytes, text/plain)
2017-05-17 08:04 UTC, Knut Masanetz
Details
kernel config (kernel-config-x86-4.11.1-gentoo,105.72 KB, text/plain)
2017-05-17 08:04 UTC, Knut Masanetz
Details
/boot/grub/grub.cfg (grub.cfg,8.11 KB, text/plain)
2017-05-17 08:05 UTC, Knut Masanetz
Details
genkernel.conf (genkernel.conf,9.32 KB, text/plain)
2017-05-17 08:05 UTC, Knut Masanetz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel D'Ambrosio 2017-05-17 02:21:34 UTC
I have installed initramfs from genkernel, but not initialize.

Says the message: "Invalid Units Specification". 

I use: genkernel-3.5.0.8 / Linux Kernel 4.11.1 / UEFI / Luks + LVM2.

Before this reporting, I noticed that there are several people going through this, and many adopting alternative like dracut and honestly I don't like dracut.
Comment 1 Knut Masanetz 2017-05-17 05:59:43 UTC
Compiled gentoo-sources-4.11.1 with genkernel-3.5.0.8

Using the same kernel- and genkernel configs, the system booted when at buildtime lvm2-2.02.166-r2. With lvm2-2.02.171 at buildtime the system did not start.

LVM-version at boot-/runtime does not change anything.

Problems checked on amd64 with bios/gpt lvm on single disk and lvm on mdraid.

I guess differences in included parts within genkernel initrd.

Will attach working / non-working initrds later.
Comment 2 Amadeusz Żołnowski gentoo-dev 2017-05-17 06:12:27 UTC
lvm2-2.02.171 failed with sys-kernel/dracut as well - with and without lvmetad. I have also a problem initializing another volume group on already booted system (when I have worked around the problem).
Comment 3 Knut Masanetz 2017-05-17 08:03:57 UTC
Another installation on x86...

Adding kernel-config, /etc/default/grub, grub.cfg and genkernel.conf...
Can't add initramfs-files as these are too big.

emerge --info:

Portage 2.3.5 (python 2.7.13-final-0, default/linux/x86/13.0/desktop/plasma, gcc-6.3.0, glibc-2.24-r1, 4.11.1-gentoo i686)
=================================================================
System uname: Linux-4.11.1-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.3
KiB Mem:     2057672 total,   1354952 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Mon, 15 May 2017 23:15:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.8.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.1::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.27::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.intern.masanetz.net/gentoo-portage
    priority: -1000

local-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula skype-4.0.0.7-copyright PUEL googleearth AdobeFlash-10.3 Oracle-BCLA-JavaSE google-talkplugin Google-TOS AdobeFlash-11.x google-chrome MakeMKV-EULA TeamViewer google-chrome"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="https://www.masanetz-home.de/gentoo/ ftp://ftp.uni-kl.de/pub/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac accessibility acl acpi addressbook ads alsa autoipd avahi bacula-clientonly bacula-nodir bacula-nosd bash-completion berkdb bluetooth branding bzip2 cacert cairo cdda cdr cli clientonly consolekit cracklib crypt css cups cxx dbus declarative designer device-mapper dirac djvu dri dts dvb dvd dvdr egl embedded emboss encode exif extraengine extras fam fat fbcon fbcondecor ffmpeg firefox flac fortran freetype g3dvl gallium gbm gdbm geolocation gif glamor gnome-keyring gnutls google gphoto2 gpm grub gtk gtkstyle gui handbook iconv icu id3 id3tag idn ipv6 java java6 jce jpeg jpeg2k kde kdenlive keymap kipi kwallet laptop lcms ldap lensfun libkms libnotify llvm llvm-shared-libs lzma lzo mad matroska melt minizip mmx mng modules mp3 mp4 mpeg mtp multiuser mysql ncurses networkmanager nls nokia nptl nscd ntfs oauth odbc ogg openexr opengl openmp opus pam pango pcre pcre16 pdf phonon plasma png policykit postproc ppds pulseaudio python qml qt3support qt4 qt5 raw rdesktop readline redeyes samba script sdl seccomp semantic-desktop session slp smbclient spell sql sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg symlink sync-plugin-portage tcpd theora threads tiff truetype udev udisks unicode upcall update_drivedb upnp upower usb utils vim vim-pager vim-syntax vim-with-x vnc vorbis wayland webstart widgets wifi win32codecs winbind wxwidgets x264 x86 xattr xcb xcomposite xinerama xml xmp xscreensaver xv xvid zlib" ABI_X86="32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel i915" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Knut Masanetz 2017-05-17 08:04:22 UTC
Created attachment 472890 [details]
/etc/default/grub
Comment 5 Knut Masanetz 2017-05-17 08:04:40 UTC
Created attachment 472892 [details]
kernel config
Comment 6 Knut Masanetz 2017-05-17 08:05:09 UTC
Created attachment 472894 [details]
/boot/grub/grub.cfg
Comment 7 Knut Masanetz 2017-05-17 08:05:31 UTC
Created attachment 472896 [details]
genkernel.conf
Comment 8 Gabriel D'Ambrosio 2017-05-17 17:52:37 UTC
(In reply to Amadeusz Żołnowski from comment #2)
> lvm2-2.02.171 failed with sys-kernel/dracut as well - with and without
> lvmetad. I have also a problem initializing another volume group on already
> booted system (when I have worked around the problem).

Em my test dracut is working perfect. All packages are ~amd64.
Comment 9 Mike Benson 2017-05-19 06:23:03 UTC
After a great deal of trial and error inside the failure shell, I think I have tracked down the immediate problem.

At least on my initrd, the (supposedly default) setting for global/units in /etc/lvm/lvm.conf was "r".

When I manually changed this to "h", I could run a vgscan+vgchange+vgmknodes sequence to get my logical volumes.

This isn't a fix though, as the lvm.conf on my root /etc also has this setting of global/units to "r" (and works just fine, now the system is booted).

I'm still digging, but wondering if this might put someone on the right track...
Comment 10 Knut Masanetz 2017-05-19 12:28:56 UTC
The default for global/units switched from "h" to "r" with the update to 171.

On 166-r2 (and older, I think) 
"pvs --units r" leads to "Invalid units specification"...

On 171 it works.

As the genkernel initramfs uses lvm2-2.02.88 with a copy of the local /etc/lvm/lvm.conf the lvmtools in the initramfs do not know the "--units r" parameter.

After switching "global/units" to "h" in /etc/lvm/lvm.conf and rebuilding the genkernel initramfs the system boots even with lvm2-2.02.171 at buildtime...

So it's the new value "r" for global/units from 171 which breaks booting with older lvs-versions.