Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401421 - sys-kernel/genkernel-3.4.20 fails to create initramfs
Summary: sys-kernel/genkernel-3.4.20 fails to create initramfs
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-29 22:45 UTC by Thomas Beutin
Modified: 2012-02-12 02:02 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 Thomas Beutin 2012-01-29 22:45:44 UTC
# genkernel --lvm --dmraid --luks --disklabel initramfs
* Gentoo Linux Genkernel; Version 3.4.20
* Running with options: --lvm --dmraid --luks --disklabel initramfs

* Linux Kernel 3.2.1-gentoo-r2 for x86_64...
* blkid: >> Using cache
* busybox: >> Using cache
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending auxilary cpio data...
*         >> Appending busybox cpio data...
*         >> Appending lvm cpio data...
*           LVM: Adding support (compiling binaries)...
* lvm: >> Using cache
mv: cannot stat `/var/tmp/genkernel/7113.21401.4891.9946/initramfs-lvm-temp/sbin/dmsetup.static': No such file or directory
* ERROR: LVM error: Could not move dmsetup.static to dmsetup!

* -- Grepping log... --

*           LVM: Adding support (compiling binaries)...
* lvm: >> Using cache
* Gentoo Linux Genkernel; Version 3.4.20
* Running with options: --lvm --dmraid --luks --disklabel initramfs

* ERROR: LVM error: Could not move dmsetup.static to dmsetup!

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
* 
* Please do *not* report compilation failures as genkernel bugs!
* 


on another machine there is no problem with it, but on this particular machine it fails. i've found a difference: lvm2 is installed with static static-libs enabled USE flag on the working machine, but these were not enabled by me.


Reproducible: Always

Steps to Reproduce:
1.setup a new amd64 system
2.install genkernel
3.compile a kernel using genkernel
Actual Results:  
failure while creating the initramfs

Expected Results:  
installed kernel, ramdisk

 # emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.1.10-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.1.10-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.0.3
Timestamp of tree: Sun, 29 Jan 2012 17:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
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-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -fomit-frame-pointer -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/terminfo"
CXXFLAGS="-march=core2 -fomit-frame-pointer -O2 -pipe"
DISTDIR="/mnt/scratch/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en en_US de_DE de"
MAKEOPTS="-j3"
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="/mnt/scratch/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 a52 aac aalib accounting acl acpi adns aim amd64 ansi ao apache2 apng audiofile automount avahi bacula-console bash-completion bcmath berkdb bidi bind-mysql bittorrent bonobo bzip2 cairo calendar caps ccache cdb cdda cddb cdparanoia cdr cgi chipcard chroot command-args consolekit cpudetection cpulimit cracklib cramfs crypt cscope css csv ctype cups curl curlwrappers customlog cvsgraph cxx cyrus dba dbi dbm dbus dbx devmap dga dhcp directfb djvu dlopen dnsdb dri dts dv dvb dvd dvdr ecc encode exif expat fam fastcgi ffmpeg flac flash flatfile fpx ftp gd gdal gdbm gdu geoip geos gif ginac glib glut gmp gnome gnome-keyring gnuplot gphoto2 graphviz gs gssapi gstreamer gtk gudev gzip hardened hardenedphp hddtemp hdf5 hpn http hunspell hwdb iconv icq icu idea idled idn imagemagick imap imlib imlib2 inifile innodb ios ipalias ipc ipod ipv6 jabber jack java javascript jbig jingle jpeg jpeg2k kdrive kpathsea lame latex lcms ldap less libnotify libsamplerate libwww lm_sensors lmtp logrotate logwatch lua lzma lzo mad matroska mbox mcal memlimit mgetty mhash milter mime mimencode ming mmap mms mmx mp3 mp4 mpeg mplayer mpm-prefork mppe-mppc msn mtp multilib musepack musicbrainz mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses netboot netcdf network networkmanager nfs nis nls nntp nptl nptlonly nsplugin oav odbc offensive ogg openal openexr opengl openmp openssh openssl osc oscar pam pam_chroot pam_timestamp parse-clocks pcntl pcre pda pdf pdfkit pdflib perl php pic plotutils png policykit posix postfix postgis postgres ppds procmail pulseaudio pwdb python qdbm quotas radius raw rdesktop readline recode reiserfs rrdtool rss samba sample sasl scanner screen sendfile sensord session sftp sftplogging shaper shared sharedext shorten sieve simplexml slang slp smartcard smime smp sms smtp sna sndfile snmp snortsam soap sockets socks5 sound sox spamassassin speex spell spl sql sqlite sqlite3 sse sse2 sse4 sse4_1 ssl ssse3 stream subversion svg sysfs syslog sysvipc szip taglib tcpd theora tidy tiff timidity tokenizer tools transparent-proxy truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 uuid v4l vaapi vcd vhosts vim-syntax virtual-users virus-scan vnc vorbis vpx wddx weather webdav wifi withsamplescripts wmf x264 xattr xcb xcomposite xface xfs xft xinerama xinetd xml xml2 xmlrpc xmpp xorg xosd xpdf-headers xpm xsl xslt xv xvid yahoo yaz zlib" APACHE2_MODULES="access auth auth_basic authn_dbm dbd ident imagemap authn_dbd authn_file authn_default authz_groupfile authn_alias authn_anon authz_dbm authz_owner authz_default authz_user auth_digest authz_host alias file_cache echo charset_lite cache disk_cache mem_cache ext_filter case_filter case-filter-in deflate filter mime_magic cern_meta proxy_ajp proxy_balancer expires headers usertrack proxy proxy_connect proxy_ftp proxy_http info include cgi cgid dav dav_lock dav_fs vhost_alias speling rewrite log_config logio env setenvif mime status substitute autoindex asis negotiation dir imap actions userdir so unique_id" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LINGUAS="en_GB en en_US de_DE de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vga intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Beutin 2012-01-30 20:18:04 UTC
when i specify "--cachedir=<a_temporary_directory>" in the command line then an initramfs is created an placed into the /boot directory.

IMHO this is just a workaround and not a permanent solution to the problem...
Comment 2 Thomas Beutin 2012-01-31 08:53:04 UTC
after a "rm /var/cache/genkernel/*.bz2" genkernel runs fine even without the "--cachedir=<a_temporary_directory>" command line parameter.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 02:02:33 UTC
Your cache had a bad file.