]> git.pld-linux.org Git - packages/geninitrd.git/blame - geninitrd.spec
- updated to 10000.15
[packages/geninitrd.git] / geninitrd.spec
CommitLineData
70a0ef68 1Summary: Creates an initial ramdisk image for preloading modules
4bd9777f 2Summary(pl.UTF-8): Narzędzie do tworzenia inicjalnego ramdysku używanego przy starcie systemu
70a0ef68 3Name: geninitrd
2722292c 4Version: 10000.15
417ef52a 5# leave rel 1 for ac
2722292c 6Release: 2
70a0ef68 7License: GPL
6e7d5844 8Group: Applications/System
3adc6ee3 9Source0: %{name}-%{version}.tar.gz
2722292c 10# Source0-md5: a67072374f183a4354770cb603b26807
929a4239 11Patch0: %{name}-romfs.patch
0dd71c4b 12BuildRequires: xmlto >= 0:0.0.18-1
0e068c76 13Requires: awk
be5000a4 14Requires: busybox-initrd >= 1.00-0.rc3.2
417ef52a 15Requires: coreutils
7b29e9b5 16Requires: cpio
0e068c76 17Requires: fileutils
18Requires: genromfs
19Requires: gzip
376b532f 20Requires: /usr/bin/ldd
d8020824 21# otherwise lvm subsystem is automaticly disabled in geninitrd
d8020824 22Requires: lvm2-initrd
5b3dcc08 23Requires: rc-scripts >= 0.2.7
e21a5649 24# without this softraid installations of PLD fail
29566ff4 25Requires: mdadm-initrd >= 1.12.0-1
16ac31fd 26Requires: mktemp >= 1.5-8
f9ef5006 27Requires: module-init-tools >= 3.2.2-6
0e068c76 28Requires: mount
495990cb 29Requires: pci-database >= 0.4
0e068c76 30Requires: tar
70a0ef68 31Obsoletes: mkinitrd
429e8b1c 32Conflicts: grubby < 6.0.24-3
f9ef5006 33Conflicts: udev-initrd < 1:104
cf111fa1 34BuildArch: noarch
70a0ef68
JK
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
570eccb2
ER
38Geninitrd creates filesystem images for use as initial ramdisk
39(initrd) images. These ramdisk images are often used to preload the
40block device modules (SCSI or RAID) needed to access the root
41filesystem.
70a0ef68
JK
42
43In other words, generic kernels can be built without drivers for any
44SCSI adapters which load the SCSI driver as a module. Since the kernel
45needs to read those modules, but in this case it isn't able to address
46the SCSI adapter, an initial ramdisk is used. The initial ramdisk is
47loaded by the operating system loader (normally LILO) and is available
48to the kernel as soon as the ramdisk is loaded. The ramdisk image
49loads the proper SCSI adapter and allows the kernel to mount the root
50filesystem. The geninitrd program creates such a ramdisk using
51information found in the /etc/modules.conf file.
52
54baa167
JR
53%description -l pl.UTF-8
54Geninitrd służy do tworzenia obrazu systemu plikowego używanego jako
55inicjalny ramdysk (initrd), z którego przy starcie systemu są ładowane
56moduły kernela z obsługą urządzeń których obsługa nie jest
57wkompilowana w kernel. Zazwyczaj modułami ładowanymi z inicjalnego
58systemu plikowego są sterowniki SCSI, IDE czy też RAID po to żeby w
59dalszej części inicjacji systemu był możliwy dostęp do głównego
70a0ef68
JK
60systemu plikowego (root fs).
61
54baa167
JR
62Dzięki initrd jest możliwe używanie dystrybucyjnego kernela w którym
63wkompilowana jest minimalna ilość obsługi różnych urządzeń, a reszta
64kodu obsługi sterowników SCSI, IDE czy RAID jest doczytywana w trakcie
70a0ef68 65startu z initrd. Skrypt geninitrd generuje obraz ramdysku na podstawie
54baa167 66bieżących informacji zawartych w /etc/modules.conf.
70a0ef68
JK
67
68%prep
69%setup -q
929a4239 70%if "%{pld_release}" == "ti"
71%patch0 -p1
72%endif
f2aef47d 73
0dd71c4b 74%build
e0c74de2 75%{__make}
0dd71c4b 76
70a0ef68
JK
77%install
78rm -rf $RPM_BUILD_ROOT
f2aef47d 79
37688ad3 80%{__make} install \
e0c74de2 81 DESTDIR=$RPM_BUILD_ROOT
70a0ef68
JK
82
83%clean
84rm -rf $RPM_BUILD_ROOT
85
86%files
87%defattr(644,root,root,755)
61d0a20b 88%doc ChangeLog
417ef52a 89%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/geninitrd
70a0ef68 90%attr(755,root,root) /sbin/geninitrd
429e8b1c 91%{_mandir}/man8/geninitrd.8*
417ef52a 92
429e8b1c
ER
93%dir /lib/geninitrd
94/lib/geninitrd/functions
95/lib/geninitrd/mod-*.sh
This page took 0.041135 seconds and 4 git commands to generate.