Summary: Creates an initial ramdisk image for preloading modules Summary(pl): Narzędzie do tworzenia inicjalnego ramdysku używanego przy starcie systemu Name: geninitrd Version: 3196 Release: 1 License: GPL Group: Applications/System Source0: %{name}-%{version}.tar.gz # Source0-md5: cab9f7efe922d8841bdbd3f2e05f6702 Requires: awk Requires: busybox-initrd >= 1.00-0.pre5.0 Requires: fileutils Requires: genromfs Requires: gzip Requires: mktemp >= 1.5-8 Requires: mount Requires: pci-database >= 0.0.2 Requires: sh-utils Requires: tar Prereq: rc-scripts >= 0.2.7 Obsoletes: mkinitrd Conflicts: mdadm-initrd < 1.4.0-3 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Mkinitrd creates filesystem images for use as initial ramdisk (initrd) images. These ramdisk 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 LILO) 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 geninitrd program creates such a ramdisk using information found in the /etc/modules.conf file. %description -l pl Mkinitrd służy do tworzenia obrazu systemu plikowego używanego jako inicjalny ramdysk (initrd), z którego przy starcie systemu są ładowane moduły kernela z obsługą urządzeń których obsługa nie jest wkompilowana w kernel. Zazwyczaj modułami ładowanymi z inicjalnego systemu plikowego są sterowniki SCSI, IDE czy też RAID po to żeby w dalszej części inicjacji systemu był możliwy dostęp do głównego systemu plikowego (root fs). Dzięki initrd jest możliwe używanie dystrybucyjnego kernela w którym wkompilowana jest minimalna ilość obsługi różnych urządzeń, a reszta kodu obsługi sterowników SCSI, IDE czy RAID jest doczytywana w trakcie startu z initrd. Skrypt geninitrd generuje obraz ramdysku na podstawie bieżących informacji zawartych w /etc/modules.conf. %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT %{__make} BUILDROOT=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) /sbin/geninitrd %config(noreplace) /etc/sysconfig/geninitrd %{_mandir}/man8/*