Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1574533
 поиск   регистрация   авторизация 
 
Группа :: Система/Ядро и оборудование
Пакет: mkinitrd

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: mkinitrd
Version: 2.9.7
Release: alt0.M24.3
BuildArch: noarch
Packager: Sergey Vlasov <vsu at altlinux.ru>
Serial: 1

Summary: Creates an initial ramdisk image for preloading modules
License: GPL
Group: System/Kernel and hardware

Source: %name-%version.tar.bz2

PreReq: modutils >= 0:2.4.27-alt1, mktemp >= 1:1.3.1
PreReq: mkinitrd-busybox >= 1.00.rel-alt0.M24.1
PreReq: coreutils findutils gawk genromfs getopt sed

# libhw-tools is not strictly required (it is used only for autodetection if

# scsi_hostadapter is not specified explicitly); however, older versions are
# not suitable (modules.pcimap support is required).
Conflicts: libhw-tools < 0.2.12-alt0.M24.1

%description
Mkinitrd creates filesystem images which are suitable for use as
Linux initial ramdisk (initrd) images.  Such images are often used
for preloading the block device modules (such as IDE, SCSI or RAID)
which are needed to access the root filesystem.  Mkinitrd automatically
loads IDE modules, all scsi_hostadapter entries in /etc/modules.conf,
and raid modules if the system's root partition is on raid, which
makes it simple to build and use kernels using modular device drivers.

In other words, generic kernels can be built without drivers for any
IDE/SCSI/RAID adapters which load appropriate driver as a module.
Since the kernel needs to read those modules, but in this case it
isn't able to address the IDE/SCSI/RAID adapter, an initial ramdisk
is used.  The initial ramdisk is loaded by the operating system loader
(such as LILO or GRUB) and is available to the kernel as soon as the
ramdisk is loaded.  The ramdisk image loads the proper IDE/SCSI/RAID
adapter and allows the kernel to mount the root filesystem.
The %name program creates such a ramdisk using information found in
the /etc/modules.conf file.

%prep
%setup -q

%build
%__subst -p 's/ at VERSION at /%version/g' -- %name

%install
%__install -pD -m755 %name $RPM_BUILD_ROOT/sbin/%name
%__install -pD -m644 %name.8 $RPM_BUILD_ROOT%_man8dir/%name.8

%files
/sbin/*
%_man8dir/*

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005