Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181685 - =sys-apps/mkinitrd-6.0.93 has been released
Summary: =sys-apps/mkinitrd-6.0.93 has been released
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 324741
Blocks:
  Show dependency tree
 
Reported: 2007-06-11 19:38 UTC by Sergey Belyashov
Modified: 2010-07-21 12:52 UTC (History)
0 users

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


Attachments
sys-apps/mkinitrd-4.2.1.10.ebuild (mkinitrd-4.2.1.10.ebuild,1.45 KB, text/plain)
2007-06-11 19:39 UTC, Sergey Belyashov
Details
files/mkinitrd-4.2.0.3-cpio-format.patch (mkinitrd-4.2.0.3-cpio-format.patch,337 bytes, patch)
2007-06-11 19:40 UTC, Sergey Belyashov
Details | Diff
files/mkinitrd-4.2.0.3-raiddev.patch (mkinitrd-4.2.0.3-raiddev.patch,310 bytes, patch)
2007-06-11 19:43 UTC, Sergey Belyashov
Details | Diff
files/mkinitrd-nash-reiserfs-label.patch (mkinitrd-nash-reiserfs-label.patch,6.52 KB, patch)
2007-06-11 19:44 UTC, Sergey Belyashov
Details | Diff
files/mkinitrd-nash-reiserfs-label.patch (mkinitrd-nash-reiserfs-label.patch,6.51 KB, patch)
2007-06-11 20:36 UTC, Sergey Belyashov
Details | Diff
sys-apps/mkinitrd-4.2.1.10.ebuild (mkinitrd-4.2.1.10.ebuild,1.69 KB, text/plain)
2007-06-13 20:23 UTC, Sergey Belyashov
Details
files/mkinitrd-nash-diet-support.patch (mkinitrd-nash-diet-support.patch,4.27 KB, patch)
2007-06-13 20:24 UTC, Sergey Belyashov
Details | Diff
files/mkinitrd-nash-reiserfs-label.patch (mkinitrd-nash-reiserfs-label.patch,5.00 KB, patch)
2007-06-13 20:24 UTC, Sergey Belyashov
Details | Diff
files/mkinitrd-nash-extra-commands.patch (mkinitrd-nash-extra-commands.patch,9.18 KB, patch)
2007-06-13 20:25 UTC, Sergey Belyashov
Details | Diff
mkinitrd-6.0.93.ebuild (mkinitrd-6.0.93.ebuild,957 bytes, text/plain)
2009-12-09 12:18 UTC, Samuli Suominen (RETIRED)
Details
mkinitrd-6.0.93-build.patch (mkinitrd-6.0.93-build.patch,1.62 KB, patch)
2009-12-09 12:19 UTC, Samuli Suominen (RETIRED)
Details | Diff
files/4.2.1.10-warning-error.patch (4.2.1.10-warning-error.patch,416 bytes, patch)
2009-12-11 20:16 UTC, Sergey Belyashov
Details | Diff
sys-apps/mkinitrd-4.2.1.10.ebuild (mkinitrd-4.2.1.10.ebuild,1.89 KB, text/plain)
2009-12-11 20:17 UTC, Sergey Belyashov
Details
mkinitrd-6.0.93.ebuild (mkinitrd-6.0.93.ebuild,1.05 KB, text/plain)
2009-12-11 20:19 UTC, Samuli Suominen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Belyashov 2007-06-11 19:38:30 UTC
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:
Comment 1 Sergey Belyashov 2007-06-11 19:39:11 UTC
Created attachment 121754 [details]
sys-apps/mkinitrd-4.2.1.10.ebuild
Comment 2 Sergey Belyashov 2007-06-11 19:40:30 UTC
Created attachment 121755 [details, diff]
files/mkinitrd-4.2.0.3-cpio-format.patch
Comment 3 Sergey Belyashov 2007-06-11 19:43:59 UTC
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
Comment 4 Sergey Belyashov 2007-06-11 19:44:58 UTC
Created attachment 121758 [details, diff]
files/mkinitrd-nash-reiserfs-label.patch

Adds support for ReiserFS labels and uuids to NASH.
Comment 5 Sergey Belyashov 2007-06-11 20:36:30 UTC
Created attachment 121766 [details, diff]
files/mkinitrd-nash-reiserfs-label.patch
Comment 6 Sergey Belyashov 2007-06-13 20:23:42 UTC
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).
Comment 7 Sergey Belyashov 2007-06-13 20:24:13 UTC
Created attachment 121961 [details, diff]
files/mkinitrd-nash-diet-support.patch
Comment 8 Sergey Belyashov 2007-06-13 20:24:39 UTC
Created attachment 121963 [details, diff]
files/mkinitrd-nash-reiserfs-label.patch
Comment 9 Sergey Belyashov 2007-06-13 20:25:04 UTC
Created attachment 121965 [details, diff]
files/mkinitrd-nash-extra-commands.patch
Comment 10 Stefan Hellermann 2007-07-26 16:32:14 UTC
mkinitrd-lvm_statics.diff is missing ...
Comment 11 Sergey Belyashov 2007-07-26 18:40:45 UTC
(In reply to comment #10)
> mkinitrd-lvm_statics.diff is missing ...
> 

This file already presents in gentoo-portage (/usr/portage/sys-apps/mkinitrd/files).
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2009-12-09 12:18:59 UTC
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.
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2009-12-09 12:19:39 UTC
Created attachment 212530 [details, diff]
mkinitrd-6.0.93-build.patch

Patch to prev. ebuild
Comment 14 SpanKY gentoo-dev 2009-12-09 13:29:02 UTC
feel free to commit updated ebuilds.  no one currently cares about this package.
Comment 15 Sergey Belyashov 2009-12-11 20:12:36 UTC
(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)
Comment 16 Sergey Belyashov 2009-12-11 20:16:30 UTC
Created attachment 212734 [details, diff]
files/4.2.1.10-warning-error.patch
Comment 17 Sergey Belyashov 2009-12-11 20:17:42 UTC
Created attachment 212736 [details]
sys-apps/mkinitrd-4.2.1.10.ebuild
Comment 18 Samuli Suominen (RETIRED) gentoo-dev 2009-12-11 20:19:17 UTC
Created attachment 212737 [details]
mkinitrd-6.0.93.ebuild

Missing lvm2 or device-mapper depend for libdevmapper.h.
Comment 19 Sergey Belyashov 2009-12-14 15:08:16 UTC
Also elfutils are required for build.
Comment 20 Kostornoy Vladimir 2009-12-26 20:13:37 UTC
(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'.
Comment 21 Samuli Suominen (RETIRED) gentoo-dev 2010-06-19 15:04:16 UTC
http://cvs.fedoraproject.org/viewvc/rpms/mkinitrd/devel/dead.package?view=log

Fedora removed mkinitrd from their repositories and moved to sys-kernel/dracut.
Comment 22 Samuli Suominen (RETIRED) gentoo-dev 2010-07-21 12:52:12 UTC
gone. use dracut.