I modify previous ebuild for new version of mkinitrd. This ebuild uses original mkinitrd-4.2.1.10-1.1.src.rpm from Red Hat ftp server. this ebuild applies: 1. mkinitrd-4.2.0.3-cpio-format.patch 2. mkinitrd-4.2.0.3-raiddev.patch 3. mkinitrd-lvm_statics.diff (currently in portage) 4. mkinitrd-nash-reiserfs-label.patch Last patch provides support of mounting ReiserFS partitions via label or uuid. Previously only XFS, EXT2, and EXT3 were supported. It works for me on both amd64 and i686 boxes. Reproducible: Always Steps to Reproduce:
Created attachment 121754 [details] sys-apps/mkinitrd-4.2.1.10.ebuild
Created attachment 121755 [details, diff] files/mkinitrd-4.2.0.3-cpio-format.patch
Created attachment 121756 [details, diff] files/mkinitrd-4.2.0.3-raiddev.patch fixes problem with raid devices symlinks: /dev/md0 -> /dev/md/0 /dev/md1 -> /dev/md/1
Created attachment 121758 [details, diff] files/mkinitrd-nash-reiserfs-label.patch Adds support for ReiserFS labels and uuids to NASH.
Created attachment 121766 [details, diff] files/mkinitrd-nash-reiserfs-label.patch
Created attachment 121960 [details] sys-apps/mkinitrd-4.2.1.10.ebuild Added USE flag 'diet'. Using it decrease size of nash at more than 10 times (~55KiB with diet vs ~554KiB with static glibc)! Added new buildin commands to nash: 1. rmdir - removes empty directory(s) 2. unlink - removes file(s) or symlink(s) 3. rm - removes empty directory(s), file(s) or directory(s) recursively 4. insmod - inserts a module to the kernel Fixed some warnings in nash and grubby. New mkinitrd features: 1. deletion of all unneeded files and directories at temporary rootfs before switchroot command in init script 2. /sbin/insmod.static is copied to initrd image only when udev used (insmod.static is more than 500KiB) 3. nash in image is fully striped (--strip-all).
Created attachment 121961 [details, diff] files/mkinitrd-nash-diet-support.patch
Created attachment 121963 [details, diff] files/mkinitrd-nash-reiserfs-label.patch
Created attachment 121965 [details, diff] files/mkinitrd-nash-extra-commands.patch
mkinitrd-lvm_statics.diff is missing ...
(In reply to comment #10) > mkinitrd-lvm_statics.diff is missing ... > This file already presents in gentoo-portage (/usr/portage/sys-apps/mkinitrd/files).
Created attachment 212529 [details] mkinitrd-6.0.93.ebuild http://cvs.fedoraproject.org/viewvc/rpms/mkinitrd/devel/ http://git.fedoraproject.org/git/hosted/mkinitrd/ The tarball is a git clone from git://git.fedoraproject.org/git/hosted/mkinitrd with .git directories removed and renamed as versioned.
Created attachment 212530 [details, diff] mkinitrd-6.0.93-build.patch Patch to prev. ebuild
feel free to commit updated ebuilds. no one currently cares about this package.
(In reply to comment #12) > Created an attachment (id=212529) [details] > mkinitrd-6.0.93.ebuild # LANG=C ebuild mkinitrd-6.0.93.ebuild clean install * mkinitrd-6.0.93.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking mkinitrd-6.0.93.tar.bz2 ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking mkinitrd-6.0.93.tar.bz2 to /var/tmp/portage/sys-apps/mkinitrd-6.0.93/work * Applying mkinitrd-6.0.93-build.patch ... [ ok ] >>> Source unpacked in /var/tmp/portage/sys-apps/mkinitrd-6.0.93/work >>> Compiling source in /var/tmp/portage/sys-apps/mkinitrd-6.0.93/work/mkinitrd-6.0.93 ... make making /var/tmp/portage/sys-apps/mkinitrd-6.0.93/work/mkinitrd-6.0.93/version.h make[1]: Entering directory `/var/tmp/portage/sys-apps/mkinitrd-6.0.93/work/mkinitrd-6.0.93/nash' making /var/tmp/portage/sys-apps/mkinitrd-6.0.93/work/mkinitrd-6.0.93/nash/version.h i686-pc-linux-gnu-gcc -O2 -march=athlon -pipe -Wall -D_FORTIFY_SOURCE=2 -Wno-unused-function -fPIC -std=gnu99 -D_GNU_SOURCE=1 -Wall -D_FORTIFY_SOURCE=2 -Wno-unused-function -fPIC -std=gnu99 -D_GNU_SOURCE=1 -I/var/tmp/portage/sys-apps/mkinitrd-6.0.93/work/mkinitrd-6.0.93/nash/include -I/var/tmp/portage/sys-apps/mkinitrd-6.0.93/work/mkinitrd-6.0.93/bdevid/include -c -o lib.o lib.c lib.c:30:26: error: libdevmapper.h: No such file or directory lib.c: In function '_nashFreeContext': lib.c:119: warning: implicit declaration of function 'dm_lib_exit' make[1]: *** [lib.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/mkinitrd-6.0.93/work/mkinitrd-6.0.93/nash' make: *** [subdirs] Error 1 # emerge -p device-mapper These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-fs/device-mapper-1.02.24-r1 USE="(-selinux)" [blocks B ] sys-fs/device-mapper ("sys-fs/device-mapper" is blocking sys-fs/udev-146-r1)
Created attachment 212734 [details, diff] files/4.2.1.10-warning-error.patch
Created attachment 212736 [details] sys-apps/mkinitrd-4.2.1.10.ebuild
Created attachment 212737 [details] mkinitrd-6.0.93.ebuild Missing lvm2 or device-mapper depend for libdevmapper.h.
Also elfutils are required for build.
(In reply to comment #17) > Created an attachment (id=212736) [details] > sys-apps/mkinitrd-4.2.1.10.ebuild > what is mkboot in ${FILESDIR} ? and ${FILESDIR}/installkernel ${FILESDIR}/initrd too. .. >>> Source compiled. >>> Test phase [not enabled]: sys-apps/mkinitrd-4.2.1.10 >>> Install mkinitrd-4.2.1.10 into /var/tmp/portage/sys-apps/mkinitrd-4.2.1.10/image/ category sys-apps !!! dosbin: /usr/portage/local/handmade/sys-apps/mkinitrd/files/mkboot does not exist * * ERROR: sys-apps/mkinitrd-4.2.1.10 failed. * Call stack: * ebuild.sh, line 49: Called src_install * environment, line 2694: Called die * The specific snippet of code: * dosbin ${FILESDIR}/mkboot || die; * The die message: * (no error message) * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/mkinitrd-4.2.1.10/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/mkinitrd-4.2.1.10/temp/environment'.
http://cvs.fedoraproject.org/viewvc/rpms/mkinitrd/devel/dead.package?view=log Fedora removed mkinitrd from their repositories and moved to sys-kernel/dracut.
gone. use dracut.