]> git.pld-linux.org Git - packages/geninitrd.git/blame_incremental - geninitrd.spec
- one more typo
[packages/geninitrd.git] / geninitrd.spec
... / ...
CommitLineData
1Summary: Creates an initial ramdisk image for preloading modules
2Summary(pl.UTF-8): Narzędzie do tworzenia inicjalnego ramdysku używanego przy starcie systemu
3Name: geninitrd
4Version: 12821
5Release: 1
6License: GPL
7Group: Applications/System
8Source0: %{name}-%{version}.tar.gz
9# Source0-md5: 8b4333782f37af8d56ecd3a9d153e164
10Patch0: %{name}-static-dev.patch
11Patch1: %{name}-posix-sh.patch
12URL: http://git.pld-linux.org/?p=projects/geninitrd.git
13BuildRequires: xmlto >= 0:0.0.18-1
14Requires: /usr/bin/ldd
15Requires: awk
16Requires: busybox-implementation >= 1.30.0-1
17Requires: coreutils
18Requires: cpio
19Requires: fileutils
20Requires: glibc-misc
21Requires: gzip
22Requires: libgcc
23Requires: mktemp >= 1.5-8
24Requires: mount
25Requires: pci-database >= 0.4
26Requires: rc-scripts >= 0.2.7
27Requires: tar
28Requires: virtual(module-tools)
29Requires: xz
30Suggests: genromfs
31Suggests: pciutils
32Obsoletes: mkinitrd
33# suggest for blkid
34%if "%{pld_release}" == "ac"
35# otherwise LVM subsystem is not enabled in geninitrd
36Suggests: lvm2-initrd
37# without this softraid installations of PLD fail
38Suggests: mdadm-initrd >= 1.12.0-1
39Conflicts: grubby < 5.0.4-3.1
40%else
41Conflicts: grubby < 6.0.24-3
42%endif
43Conflicts: busybox-initrd < 1.35.0-3
44Conflicts: kmod < 7-2
45Conflicts: module-init-tools < 3.2.2-6
46Conflicts: pciutils < 2.2.9
47Conflicts: udev-initrd < 1:168
48Conflicts: xz < 4.999.9
49BuildArch: noarch
50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52%description
53Geninitrd creates filesystem images for use as initial ramdisk
54(initrd) images. These ramdisk images are often used to preload the
55block device modules (SCSI or RAID) needed to access the root
56filesystem.
57
58In other words, generic kernels can be built without drivers for any
59SCSI adapters which load the SCSI driver as a module. Since the kernel
60needs to read those modules, but in this case it isn't able to address
61the SCSI adapter, an initial ramdisk is used. The initial ramdisk is
62loaded by the operating system loader (normally LILO) and is available
63to the kernel as soon as the ramdisk is loaded. The ramdisk image
64loads the proper SCSI adapter and allows the kernel to mount the root
65filesystem. The geninitrd program creates such a ramdisk using
66information found in the /etc/modules.conf file.
67
68%description -l pl.UTF-8
69Geninitrd służy do tworzenia obrazu systemu plikowego używanego jako
70inicjalny ramdysk (initrd), z którego przy starcie systemu są ładowane
71moduły kernela z obsługą urządzeń których obsługa nie jest
72wkompilowana w kernel. Zazwyczaj modułami ładowanymi z inicjalnego
73systemu plikowego są sterowniki SCSI, IDE czy też RAID po to żeby w
74dalszej części inicjacji systemu był możliwy dostęp do głównego
75systemu plikowego (root fs).
76
77Dzięki initrd jest możliwe używanie dystrybucyjnego kernela w którym
78wkompilowana jest minimalna ilość obsługi różnych urządzeń, a reszta
79kodu obsługi sterowników SCSI, IDE czy RAID jest doczytywana w trakcie
80startu z initrd. Skrypt geninitrd generuje obraz ramdysku na podstawie
81bieżących informacji zawartych w /etc/modules.conf.
82
83%prep
84%setup -q
85%patch0 -p1
86%patch1 -p1
87
88%build
89%{__make}
90
91%install
92rm -rf $RPM_BUILD_ROOT
93%{__make} install \
94 DESTDIR=$RPM_BUILD_ROOT
95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
99%files
100%defattr(644,root,root,755)
101%doc ChangeLog
102%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/geninitrd
103%attr(755,root,root) /sbin/geninitrd
104%{_mandir}/man8/geninitrd.8*
105
106%dir /lib/geninitrd
107/lib/geninitrd/functions
108/lib/geninitrd/functions.initrd
109/lib/geninitrd/mod-*.sh
110%attr(755,root,root) /lib/geninitrd/extract-ikconfig
111
112%dir /lib/geninitrd/udev-rules
113/lib/geninitrd/udev-rules/*.rules
This page took 0.052514 seconds and 5 git commands to generate.