Summary: Creates an initial ramdisk image for preloading modules. Name: mkinitrd Version: 5.0.17 Release: 24ark License: GPL Group: System Environment/Base Source: mkinitrd-%{version}.tar.bz2 Source1: uuidify-fstab.cpp ExclusiveOs: Linux Prereq: dev Requires: e2fsprogs, /bin/sh, fileutils, grep, mount, gzip, tar, /sbin/insmod.static, /sbin/losetup, mktemp >= 1.5-5, findutils Requires: filesystem >= 2.1.0, cpio BuildRequires: popt-static util-linux-static %ifarch %ix86 BuildRequires: dietlibc %endif %ifarch ppc Requires: ppc64-utils >= 0.3-1 %endif BuildRoot: %{_tmppath}/%{name}-root Patch: mkinitrd-4.2.0.3-ark.patch Patch1: mkinitrd-4.2.0.3-newkerneldefault.patch Patch2: mkinitrd-5.0.17-fbsplash.patch Patch3: mkinitrd-5.0.17-sata.patch Patch4: mkinitrd-5.0.8-compile.patch Patch5: mkinitrd-5.0.8-dyn-mknod.patch Patch6: mkinitrd-5.0.17-usbroot.patch Patch7: mkinitrd-5.0.2-no-spewage.patch Patch8: mkinitrd-5.0.17-fbmodule.patch Patch9: mkinitrd-5.0.8-fix-braindamage.patch Patch10: mkinitrd-5.0.8-static-dev.patch Patch11: mkinitrd-5.0.10-Werror.patch Patch12: mkinitrd-5.0.10-no-selinux.patch Patch13: mkinitrd-5.0.10-dmmapper-notyet.patch Patch14: mkinitrd-5.0.15-basic-if.patch Patch15: mkinitrd-5.0.17-initttys.patch Patch16: mkinitrd-5.0.17-libata.patch Patch17: mkinitrd-5.0.17-nash-dietlibc.patch Patch18: mkinitrd-5.0.17-uvesafb.patch Patch19: mkinitrd-5.0.17-usb-devices.patch Patch20: mkinitrd-5.0.17-no-usb-storage-for-ATA-root.patch Patch21: mkinitrd-5.0.17-modprobe.d.patch Patch22: mkinitrd-5.0.17-lzma.patch Patch23: mkinitrd-mount-jfs-by-uuid.patch Patch24: mkinitrd-adapt-to-multiple-CPU-versions.patch %description Mkinitrd creates filesystem images for use as initial ram filesystem (initramfs) images. These images are often used to preload the block device modules (SCSI or RAID) needed to access the root filesystem. In other words, generic kernels can be built without drivers for any SCSI adapters which load the SCSI driver as a module. Since the kernel needs to read those modules, but in this case it isn't able to address the SCSI adapter, an initial ramdisk is used. The initial ramdisk is loaded by the operating system loader (normally GRUB) and is available to the kernel as soon as the ramdisk is loaded. The ramdisk image loads the proper SCSI adapter and allows the kernel to mount the root filesystem. The mkinitrd program creates such a ramdisk using information found in the /etc/modprobe.conf file. %prep %setup -q %patch -p1 -b .ark~ %patch1 -p1 -b .newkerneldefault~ %patch2 -p1 -b .fbsplash~ %patch3 -p1 -b .sata~ %patch4 -p1 -b .compile~ %patch5 -p1 -b .mknod~ %patch6 -p1 -b .usbroot~ %patch7 -p1 -b .no-spewage~ %patch8 -p1 -b .fbmodule~ %patch9 -p1 -b .braindamage~ %patch10 -p1 -b .staticdev~ %patch11 -p1 -b .werror~ %patch12 -p1 -b .noselinux~ %patch13 -p1 -b .dm-notyet~ %patch14 -p1 -b .if~ %patch15 -p1 -b .initttys~ %patch16 -p1 -b .libata~ %patch17 -p1 -b .dietlibc~ %patch18 -p1 -b .uvesafb~ %patch19 -p1 -b .usb~ %patch20 -p1 -b .usbfalsepositive~ %patch21 -p1 -b .modprobe.d~ %patch22 -p1 -b .lzma~ %patch23 -p1 -b .jfsuuid~ %patch24 -p1 -b .cpuversions~ sed -i -e '/^CFLAGS/iCC=diet gcc -Os' nash/Makefile perl -pi -e "s|-g|$RPM_OPT_FLAGS -std=gnu99 -Os|g;s|-Werror||g" nash/Makefile %build make make test || echo "WARNING: one or more tests failed!" g++ $RPM_OPT_FLAGS -o uuidify-fstab %SOURCE1 -I%_libdir/qt4/include/QtCore -lQtCore -lblkid %install rm -rf $RPM_BUILD_ROOT make BUILDROOT=$RPM_BUILD_ROOT mandir=%{_mandir} install mkdir -p $RPM_BUILD_ROOT%_sbindir install -c -m 755 uuidify-fstab $RPM_BUILD_ROOT%_sbindir %clean rm -rf $RPM_BUILD_ROOT %triggerun -- mkinitrd < 5.0.17-18ark %_sbindir/uuidify-fstab %files %defattr(-,root,root) %_sbindir/uuidify-fstab %attr(755,root,root) /sbin/mkinitrd %attr(644,root,root) %{_mandir}/man8/mkinitrd.8* %attr(755,root,root) /sbin/nash %attr(644,root,root) %{_mandir}/man8/nash.8* %config %attr(755,root,root) /sbin/installkernel %attr(755,root,root) /sbin/new-kernel-pkg %attr(755,root,root) /sbin/grubby %attr(644,root,root) %{_mandir}/man8/grubby.8* %changelog * Mon Aug 9 2010 Bernhard Rosenkraenzer <bero@arklinux.ch> 5.0.17-24ark - Load libahci if ahci is required, needed for 2.6.35 * Thu Jun 17 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-23ark - more udev related fixes * Tue Jun 15 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-22ark - udev related fixes * Tue May 26 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-21ark - Re-enable LZMA compression for kernel 2.6.30-rc7 * Fri May 8 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-20ark - Adapt to new new-kernel-pkg parameters used by kernels >= 2.6.29.2-1ark * Mon Apr 27 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-19ark - Fix plain old IDE drives that aren't supported by any pata_* driver * Fri Mar 6 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-18ark - Allow mounting JFS and SWAP filesystems by UUID and LABEL - Adjust fstab to list filesystems by UUID instead of device name * Wed Feb 11 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-17ark - Back out LZMA-ing initrds for now, the kernel patch is buggy * Mon Feb 9 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-16ark - Adapt to kernels that want their initrds LZMA-ed * Tue Jan 6 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-15ark - Don't put in splash screens and framebuffer drivers by default anymore, with the new init they just slow things down - Locate modules that are listed in /etc/modprobe.d/*, not just /etc/modprobe.conf - Don't require v86d and splashutils anymore * Fri Apr 18 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-14ark - Adapt USB vs. SATA root filesystem detection to kernels >= 2.6.25-rc9 * Sat Mar 29 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-13ark - Be smarter about detecting a USB / and /boot * Tue Mar 11 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-12ark - Make sure usb-storage is loaded after SATA drivers, to make sure USB sticks don't mess up boot order - Add nousb option to prevent loading usb-storage * Thu Jan 31 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-11ark - Prereq v86d to make sure we don't get a blank splash screen immediately after installation * Thu Oct 4 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-10ark - Support uvesafb - Build nash against dietlibc * Mon Sep 10 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-9ark - Fix installation on boxes with AHCI SATA chips * Sat Aug 19 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-8ark - Intelfb hacks - Add --fb="Graphics card" option to force installing different framebuffer drivers * Fri Aug 11 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-7ark - Add libata modules * Sun Jul 16 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-6ark - Fix resolution * Sat Jul 8 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-5ark - Add workaround for radeonfb needing special initialization to work correctly with fbsplash * Wed Jul 5 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-4ark - Prefer radeonfb over vesafb * Mon Jun 12 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-3ark - Handle cyblafb correctly * Tue Jan 31 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-2ark - Fix a double-free in nash - Fix build with glibc 2.3.9x * Wed Jan 11 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.17-1ark - 5.0.17 * Thu Dec 29 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.15-2ark - x86_64 fixes * Fri Dec 23 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.15-1ark - 5.0.15 - Add switch for setting fb resolution * Sun Dec 18 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.12-3ark - Add a very basic implementation of "if" to nash - Make use of it to allow disabling framebuffer drivers * Mon Dec 12 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.12-2ark - Use the same parameters for i810fb the installer uses * Tue Dec 6 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.12-1ark - 5.0.12 - Add viafb detection * Sun Dec 4 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.10-2ark - Remove device mapper support for now - we don't use it and it caused crashes on bootup on some machines * Tue Nov 22 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.10-1ark - 5.0.10 - Ignore CRTC timings when loading vesafb-tng -- apparently some crappy hardware (*hum* Acer Aspire 1360 *hum*) locks up hard when probing CRTC - If the user forced vga16, don't put in vesafb-tng anyway * Fri Oct 28 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.8-2ark - Don't Requires(post) kernel -- it's good for upgrades but breaks fresh installs - Fix module load order. i2c-core must be loaded before i2c-algo-bit - i810fb needs AGP, but doesn't use its symbols --> the dependency doesn't show up in modules.dep. Load the right modules anyway. * Mon Oct 24 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.8-1ark - 5.0.8 - Restore suport for static /dev (was removed upstream in 5.0.5) - Fix i810fb loading * Fri Sep 30 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 5.0.2-1ark - 5.0.2 - Add support for adding (and autoloading) framebuffer drivers now that vesafb is modularized - Fix some upstream braindamage -- parsing /proc/cmdline before mounting /proc is not exactly a smart idea * Wed Sep 14 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 4.2.21-1ark - Fix SATA support for modules starting with ata_ rather than sata_ (ICH6) - Update * Sat Apr 2 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 4.2.7-2ark - Fix some nash braindamage * Sat Apr 2 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 4.2.7-1ark - 4.2.7 * Tue Mar 8 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 4.2.1-1ark - 4.2.1 - First try at rootfs-on-USB support * Wed Feb 23 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 4.2.0.3-2ark - Some fbsplash fixes -- we need /dev/tty0 in the initramfs, and apparently we need to call splash_util -c repaint to get the picture displayed initially. - Don't call splash_utils from init if --nosplash is given * Fri Feb 11 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 4.2.0.3-1ark - 4.2.0.3 (initramfs version) - Fix description - Initial fbsplash support