Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37042327
en ru br
Репозитории ALT
D:3.0.5-alt1.1
5.1: 3.0.10-alt1
4.1: 3.0.10-alt0.M40.1
4.0: 3.0.10-alt0.M40.1
3.0: 2.9.7-alt1
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: mkinitrd

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

Name: mkinitrd
Version: 3.0.10
Release: alt1
Serial: 1

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

Packager: Sergey Vlasov <vsu at altlinux.ru>

Source: %name-%version.tar

PreReq: module-init-tools >= 3.1, mktemp >= 1:1.3.1
PreReq: coreutils findutils gawk getopt sed
PreReq: %name-initramfs = %serial:%version-%release
PreReq: klibc-utils-initramfs
PreReq: module-init-tools-initramfs
PreReq: udev-initramfs

# lspci is used for device detection in some cases

Requires: pciutils

%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.

%package initramfs
Summary: Scripts for initramfs images created by mkinitrd
Group: System/Kernel and hardware
AutoReq: no

%description initramfs
This package contains scripts for initramfs images created by mkinitrd.

%prep
%setup -q

%build
sed -i 's/ at VERSION at /%version/g' -- %name

%install
install -pDm755 %name %buildroot/sbin/%name
install -pDm644 %name.8 %buildroot%_man8dir/%name.8

mkdir -p %buildroot/lib/mkinitrd/initramfs-base/scripts
install -pm755 init %buildroot/lib/mkinitrd/initramfs-base/
install -pm644 scripts/{functions,local,nfs} \
%buildroot/lib/mkinitrd/initramfs-base/scripts/

mkdir -p %buildroot/lib/mkinitrd/initramfs-base/sbin
install -pm755 sbin/udevadm %buildroot/lib/mkinitrd/initramfs-base/sbin/

%files
/sbin/*
%_man8dir/*

%files initramfs
/lib/mkinitrd

%changelog

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

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin