]>
Commit | Line | Data |
---|---|---|
c5a65990 | 1 | %define dracutlibdir %{_prefix}/lib/dracut |
b40e38db | 2 | %bcond_without doc |
c5a65990 | 3 | |
dc5bb506 | 4 | # Variables must be defined |
3592d868 | 5 | %define with_nbd 1 |
641eae0f | 6 | |
dc5bb506 WT |
7 | # nbd in Fedora only |
8 | %if 0%{?rhel} >= 6 | |
9 | %define with_nbd 0 | |
0aaa523c HH |
10 | %endif |
11 | ||
0aaa523c | 12 | Name: dracut |
0e6a94b3 HH |
13 | Version: xxx |
14 | Release: xxx | |
228694e5 | 15 | |
38672ee8 | 16 | Summary: Initramfs generator using udev |
b019d405 | 17 | %if 0%{?fedora} || 0%{?rhel} |
3b403b32 | 18 | Group: System Environment/Base |
228694e5 | 19 | %endif |
5ce6642f | 20 | %if 0%{?suse_version} |
228694e5 HH |
21 | Group: System/Base |
22 | %endif | |
f4031e8a HH |
23 | |
24 | # The entire source code is GPLv2+ | |
8f53670c HH |
25 | # except install/* which is LGPLv2+ |
26 | License: GPLv2+ and LGPLv2+ | |
f4031e8a | 27 | |
82794b4b | 28 | URL: https://dracut.wiki.kernel.org/ |
f4031e8a | 29 | |
3b403b32 | 30 | # Source can be generated by |
0e6a94b3 | 31 | # http://git.kernel.org/?p=boot/dracut/dracut.git;a=snapshot;h=%{version};sf=tgz |
5db9c5c1 | 32 | Source0: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut-%{version}.tar.xz |
82794b4b | 33 | |
36c34f4e | 34 | BuildRequires: bash git |
4cfd24d1 | 35 | |
b019d405 | 36 | %if 0%{?fedora} || 0%{?rhel} |
38672ee8 | 37 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
8e2bcb4b HH |
38 | BuildRequires: pkgconfig |
39 | %endif | |
40 | %if 0%{?fedora} | |
8c67d395 HH |
41 | BuildRequires: bash-completion |
42 | BuildRequires: pkgconfig | |
228694e5 | 43 | %endif |
8e2bcb4b | 44 | |
5ce6642f | 45 | %if 0%{?suse_version} |
228694e5 HH |
46 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
47 | %endif | |
d9416c0d | 48 | |
b40e38db | 49 | %if %{with doc} |
b019d405 | 50 | %if 0%{?fedora} || 0%{?rhel} |
d9416c0d HH |
51 | BuildRequires: docbook-style-xsl docbook-dtds libxslt |
52 | %endif | |
53 | ||
5ce6642f | 54 | %if 0%{?suse_version} |
4ce3a1b1 | 55 | -BuildRequires: docbook-xsl-stylesheets libxslt |
d9416c0d | 56 | %endif |
5c554bd2 | 57 | |
4ce3a1b1 | 58 | BuildRequires: asciidoc |
b40e38db HH |
59 | %endif |
60 | ||
4ce3a1b1 | 61 | |
b019d405 | 62 | %if 0%{?fedora} > 12 || 0%{?rhel} |
0bc4ef1c HH |
63 | # no "provides", because dracut does not offer |
64 | # all functionality of the obsoleted packages | |
5c554bd2 HH |
65 | Obsoletes: mkinitrd <= 6.0.93 |
66 | Obsoletes: mkinitrd-devel <= 6.0.93 | |
67 | Obsoletes: nash <= 6.0.93 | |
0bc4ef1c | 68 | Obsoletes: libbdevid-python <= 6.0.93 |
1b3bdcc1 | 69 | %endif |
228694e5 | 70 | |
4cfd24d1 HH |
71 | %if 0%{?fedora} > 16 || 0%{?rhel} > 6 |
72 | BuildRequires: systemd-units | |
73 | %endif | |
74 | ||
228694e5 HH |
75 | %if 0%{?suse_version} > 9999 |
76 | Obsoletes: mkinitrd < 2.6.1 | |
77 | Provides: mkinitrd = 2.6.1 | |
78 | %endif | |
79 | ||
8ef5ade7 HH |
80 | Obsoletes: dracut-kernel < 005 |
81 | Provides: dracut-kernel = %{version}-%{release} | |
5c554bd2 | 82 | |
18e61d3d HH |
83 | Obsoletes: dracut <= 029 |
84 | Obsoletes: dracut-norescue | |
98836432 | 85 | Provides: dracut-norescue |
18e61d3d | 86 | |
d46394ad | 87 | Requires: bash >= 4 |
38672ee8 | 88 | Requires: coreutils |
7e33fa5b | 89 | Requires: cpio |
7e33fa5b | 90 | Requires: filesystem >= 2.1.0 |
38672ee8 JK |
91 | Requires: findutils |
92 | Requires: grep | |
7a5f1ee4 | 93 | Requires: hardlink |
50bc2253 | 94 | Requires: gzip xz |
884e1cda | 95 | Requires: kmod |
7e33fa5b | 96 | Requires: sed |
8a240aca | 97 | Requires: kpartx |
2fa6fd3a | 98 | |
b019d405 | 99 | %if 0%{?fedora} || 0%{?rhel} > 6 |
abbb76fe | 100 | Requires: util-linux >= 2.21 |
d50cf62d | 101 | Requires: systemd >= 199 |
475f3a81 | 102 | Requires: procps-ng |
c85cda9e | 103 | Conflicts: grubby < 8.23 |
d97eb425 HH |
104 | Conflicts: initscripts < 8.63-1 |
105 | Conflicts: plymouth < 0.8.0-0.2009.29.09.19.1 | |
106 | Conflicts: bcache-tools < 0-0.14.20130909git | |
b019d405 | 107 | %else |
4a5a9c6d | 108 | Requires: udev > 166 |
abbb76fe | 109 | Requires: util-linux-ng >= 2.21 |
b019d405 | 110 | %endif |
d9416c0d | 111 | |
6320d072 HH |
112 | Conflicts: mdadm < 3.2.6-14 |
113 | ||
38672ee8 | 114 | %description |
600c8769 | 115 | dracut contains tools to create a bootable initramfs for 2.6 Linux kernels. |
3b403b32 | 116 | Unlike existing implementations, dracut does hard-code as little as possible |
600c8769 | 117 | into the initramfs. dracut contains various modules which are driven by the |
3b403b32 | 118 | event-based udev. Having root on MD, DM, LVM2, LUKS is supported as well as |
c55b2080 | 119 | NFS, iSCSI, NBD, FCoE with the dracut-network package. |
38672ee8 | 120 | |
ec74fa87 | 121 | %package network |
600c8769 | 122 | Summary: dracut modules to build a dracut initramfs with network support |
78cd7629 | 123 | Requires: %{name} = %{version}-%{release} |
3d8a164d HH |
124 | Requires: iputils |
125 | Requires: iproute | |
dc63e654 | 126 | Requires: dhclient |
353ef760 HH |
127 | Obsoletes: dracut-generic < 008 |
128 | Provides: dracut-generic = %{version}-%{release} | |
ec74fa87 HH |
129 | |
130 | %description network | |
131 | This package requires everything which is needed to build a generic | |
132 | all purpose initramfs with network support with dracut. | |
133 | ||
7a1f355f | 134 | %if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version} |
4d1661d3 | 135 | %package fips |
600c8769 | 136 | Summary: dracut modules to build a dracut initramfs with an integrity check |
4d1661d3 HH |
137 | Requires: %{name} = %{version}-%{release} |
138 | Requires: hmaccalc | |
139 | %if 0%{?rhel} > 5 | |
140 | # For Alpha 3, we want nss instead of nss-softokn | |
141 | Requires: nss | |
142 | %else | |
143 | Requires: nss-softokn | |
144 | %endif | |
145 | Requires: nss-softokn-freebl | |
146 | ||
147 | %description fips | |
148 | This package requires everything which is needed to build an | |
bcd352df | 149 | initramfs with dracut, which does an integrity check. |
228694e5 | 150 | %endif |
33ee031c | 151 | |
2e1b9171 | 152 | %package fips-aesni |
600c8769 | 153 | Summary: dracut modules to build a dracut initramfs with an integrity check with aesni-intel |
2e1b9171 HH |
154 | Requires: %{name}-fips = %{version}-%{release} |
155 | ||
156 | %description fips-aesni | |
157 | This package requires everything which is needed to build an | |
bcd352df | 158 | initramfs with dracut, which does an integrity check and adds the aesni-intel kernel module. |
2e1b9171 | 159 | |
52881470 | 160 | %package caps |
600c8769 | 161 | Summary: dracut modules to build a dracut initramfs which drops capabilities |
52881470 HH |
162 | Requires: %{name} = %{version}-%{release} |
163 | Requires: libcap | |
164 | ||
165 | %description caps | |
166 | This package requires everything which is needed to build an | |
bcd352df | 167 | initramfs with dracut, which drops capabilities. |
52881470 | 168 | |
18e61d3d | 169 | %package config-generic |
e22eb857 HH |
170 | Summary: dracut configuration to turn off hostonly image generation |
171 | Requires: %{name} = %{version}-%{release} | |
18e61d3d HH |
172 | Obsoletes: dracut-nohostonly |
173 | Provides: dracut-nohostonly | |
e22eb857 | 174 | |
18e61d3d | 175 | %description config-generic |
e22eb857 | 176 | This package provides the configuration to turn off the host specific initramfs |
18e61d3d | 177 | generation with dracut and generates a generic image by default. |
e22eb857 | 178 | |
18e61d3d HH |
179 | %package config-rescue |
180 | Summary: dracut configuration to turn on rescue image generation | |
e22eb857 | 181 | Requires: %{name} = %{version}-%{release} |
18e61d3d | 182 | Obsoletes: dracut <= 029 |
e22eb857 | 183 | |
18e61d3d HH |
184 | %description config-rescue |
185 | This package provides the configuration to turn on the rescue initramfs | |
e22eb857 HH |
186 | generation with dracut. |
187 | ||
21007cb6 | 188 | %package tools |
600c8769 | 189 | Summary: dracut tools to build the local initramfs |
a0af4fa5 | 190 | Requires: %{name} = %{version}-%{release} |
21007cb6 HH |
191 | |
192 | %description tools | |
193 | This package contains tools to assemble the local initrd and host configuration. | |
194 | ||
38672ee8 | 195 | %prep |
0e6a94b3 | 196 | %setup -q -n %{name}-%{version} |
76bba2a1 HH |
197 | |
198 | %if %{defined PATCH1} | |
85cda6ae HH |
199 | git init |
200 | git config user.email "dracut-maint@redhat.com" | |
201 | git config user.name "Fedora dracut team" | |
202 | git add . | |
203 | git commit -a -q -m "%{version} baseline." | |
204 | ||
205 | # Apply all the patches. | |
206 | git am -p1 %{patches} | |
76bba2a1 | 207 | %endif |
38672ee8 JK |
208 | |
209 | %build | |
b40e38db HH |
210 | %configure --systemdsystemunitdir=%{_unitdir} --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion) --libdir=%{_prefix}/lib \ |
211 | %if %{without doc} | |
212 | --disable-documentation | |
213 | %endif | |
1d4b3375 HH |
214 | |
215 | make %{?_smp_mflags} | |
38672ee8 | 216 | |
38672ee8 | 217 | %install |
b019d405 | 218 | %if 0%{?fedora} || 0%{?rhel} |
32bd2fbb | 219 | rm -rf -- $RPM_BUILD_ROOT |
228694e5 | 220 | %endif |
1d4b3375 HH |
221 | make %{?_smp_mflags} install \ |
222 | DESTDIR=$RPM_BUILD_ROOT \ | |
223 | libdir=%{_prefix}/lib | |
38672ee8 | 224 | |
982d59af | 225 | echo "DRACUT_VERSION=%{version}-%{release}" > $RPM_BUILD_ROOT/%{dracutlibdir}/dracut-version.sh |
228694e5 | 226 | |
7a1f355f | 227 | %if 0%{?fedora} == 0 && 0%{?rhel} == 0 && 0%{?suse_version} == 0 |
32bd2fbb HH |
228 | rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/01fips |
229 | rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/02fips-aesni | |
228694e5 HH |
230 | %endif |
231 | ||
a5b48ce7 HH |
232 | %if %{defined _unitdir} |
233 | # for systemd, better use systemd-bootchart | |
32bd2fbb | 234 | rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00bootchart |
a5b48ce7 HH |
235 | %endif |
236 | ||
d96c3254 | 237 | # we do not support dash in the initramfs |
32bd2fbb | 238 | rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00dash |
d96c3254 | 239 | |
783721b3 | 240 | # remove gentoo specific modules |
32bd2fbb | 241 | rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/50gensplash |
95cf0a88 | 242 | |
04ab68a4 HH |
243 | %if %{defined _unitdir} |
244 | # with systemd IMA and selinux modules do not make sense | |
32bd2fbb HH |
245 | rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/96securityfs |
246 | rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/97masterkey | |
247 | rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/98integrity | |
04ab68a4 HH |
248 | %endif |
249 | ||
21007cb6 HH |
250 | mkdir -p $RPM_BUILD_ROOT/boot/dracut |
251 | mkdir -p $RPM_BUILD_ROOT/var/lib/dracut/overlay | |
837a5a60 HH |
252 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log |
253 | touch $RPM_BUILD_ROOT%{_localstatedir}/log/dracut.log | |
41f90cbe | 254 | mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/initramfs |
21007cb6 | 255 | |
11ee2ca8 | 256 | %if 0%{?fedora} || 0%{?rhel} |
a42b2b81 | 257 | install -m 0644 dracut.conf.d/fedora.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/01-dist.conf |
11ee2ca8 | 258 | rm -f $RPM_BUILD_ROOT%{_mandir}/man?/*suse* |
d9416c0d | 259 | %endif |
5ce6642f | 260 | %if 0%{?suse_version} |
a42b2b81 | 261 | install -m 0644 dracut.conf.d/suse.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/01-dist.conf |
d9416c0d HH |
262 | %endif |
263 | ||
11ee2ca8 HH |
264 | %if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} |
265 | install -m 0644 dracut.conf.d/fips.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/40-fips.conf | |
266 | %endif | |
267 | ||
228694e5 | 268 | %if 0%{?fedora} <= 12 && 0%{?rhel} < 6 && 0%{?suse_version} <= 9999 |
32bd2fbb HH |
269 | rm -f -- $RPM_BUILD_ROOT%{_bindir}/mkinitrd |
270 | rm -f -- $RPM_BUILD_ROOT%{_bindir}/lsinitrd | |
1b3bdcc1 HH |
271 | %endif |
272 | ||
2fa6fd3a | 273 | %if 0%{?fedora} || 0%{?rhel} > 6 |
e22eb857 | 274 | # FIXME: remove after F19 |
2fa6fd3a HH |
275 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d |
276 | install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh | |
e22eb857 | 277 | |
18e61d3d HH |
278 | echo 'hostonly="no"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-generic-image.conf |
279 | echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-rescue.conf | |
2fa6fd3a HH |
280 | %endif |
281 | ||
78d5cf7c HH |
282 | %if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} |
283 | > $RPM_BUILD_ROOT/etc/system-fips | |
284 | %endif | |
285 | ||
e4d85a77 | 286 | # create compat symlink |
06d418ab HH |
287 | mkdir -p $RPM_BUILD_ROOT%{_sbindir} |
288 | ln -sr $RPM_BUILD_ROOT%{_bindir}/dracut $RPM_BUILD_ROOT%{_sbindir}/dracut | |
4cbc0c79 | 289 | |
38672ee8 | 290 | %clean |
32bd2fbb | 291 | rm -rf -- $RPM_BUILD_ROOT |
38672ee8 | 292 | |
38672ee8 | 293 | %files |
78cd7629 | 294 | %defattr(-,root,root,0755) |
b40e38db | 295 | %if %{with doc} |
7c6eb152 | 296 | %doc README HACKING TODO COPYING AUTHORS NEWS dracut.html dracut.png dracut.svg |
b40e38db | 297 | %endif |
ed919de0 | 298 | %{_bindir}/dracut |
e4d85a77 | 299 | # compat symlink |
06d418ab | 300 | %{_sbindir}/dracut |
917f3e4d | 301 | %{_datadir}/bash-completion/completions/dracut |
7dbca9be | 302 | %{_datadir}/bash-completion/completions/lsinitrd |
228694e5 | 303 | %if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999 |
ed919de0 HH |
304 | %{_bindir}/mkinitrd |
305 | %{_bindir}/lsinitrd | |
1b3bdcc1 | 306 | %endif |
c5a65990 HH |
307 | %dir %{dracutlibdir} |
308 | %dir %{dracutlibdir}/modules.d | |
552ecca6 | 309 | %{dracutlibdir}/dracut-functions.sh |
a6b63f91 | 310 | %{dracutlibdir}/dracut-functions |
dbf8f6ba | 311 | %{dracutlibdir}/dracut-version.sh |
552ecca6 | 312 | %{dracutlibdir}/dracut-logger.sh |
fb67e4aa | 313 | %{dracutlibdir}/dracut-initramfs-restore |
f4031e8a | 314 | %{dracutlibdir}/dracut-install |
5c5350b3 | 315 | %{dracutlibdir}/skipcpio |
2fa6fd3a | 316 | %config(noreplace) %{_sysconfdir}/dracut.conf |
b019d405 | 317 | %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} |
a42b2b81 | 318 | %{dracutlibdir}/dracut.conf.d/01-dist.conf |
d9416c0d | 319 | %endif |
2fa6fd3a | 320 | %dir %{_sysconfdir}/dracut.conf.d |
a42b2b81 | 321 | %dir %{dracutlibdir}/dracut.conf.d |
b40e38db HH |
322 | |
323 | %if %{with doc} | |
00f0a6e7 | 324 | %{_mandir}/man8/dracut.8* |
13f77e9f | 325 | %{_mandir}/man8/*service.8* |
7a1f355f | 326 | %if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999 |
0e14946a | 327 | %{_mandir}/man8/mkinitrd.8* |
7a1f355f HH |
328 | %{_mandir}/man1/lsinitrd.1* |
329 | %endif | |
0d866147 | 330 | %{_mandir}/man7/dracut.kernel.7* |
45abddb0 | 331 | %{_mandir}/man7/dracut.cmdline.7* |
b6c89768 | 332 | %{_mandir}/man7/dracut.modules.7* |
a1ebd771 | 333 | %{_mandir}/man7/dracut.bootup.7* |
6cc96b35 | 334 | %{_mandir}/man5/dracut.conf.5* |
b40e38db HH |
335 | %endif |
336 | ||
a5b48ce7 HH |
337 | %if %{defined _unitdir} |
338 | %{dracutlibdir}/modules.d/00systemd-bootchart | |
339 | %else | |
c5a65990 | 340 | %{dracutlibdir}/modules.d/00bootchart |
a5b48ce7 | 341 | %endif |
f071d557 | 342 | %{dracutlibdir}/modules.d/00bash |
9b6c5fd7 | 343 | %{dracutlibdir}/modules.d/03modsign |
fba5fbbd | 344 | %{dracutlibdir}/modules.d/03rescue |
ef914f7d | 345 | %{dracutlibdir}/modules.d/04watchdog |
c5a65990 HH |
346 | %{dracutlibdir}/modules.d/05busybox |
347 | %{dracutlibdir}/modules.d/10i18n | |
437cecb9 | 348 | %{dracutlibdir}/modules.d/30convertfs |
5c4bb360 | 349 | %{dracutlibdir}/modules.d/45url-lib |
b4751714 | 350 | %{dracutlibdir}/modules.d/50drm |
c5a65990 | 351 | %{dracutlibdir}/modules.d/50plymouth |
b80078af | 352 | %{dracutlibdir}/modules.d/80cms |
c5a65990 HH |
353 | %{dracutlibdir}/modules.d/90btrfs |
354 | %{dracutlibdir}/modules.d/90crypt | |
355 | %{dracutlibdir}/modules.d/90dm | |
356 | %{dracutlibdir}/modules.d/90dmraid | |
357 | %{dracutlibdir}/modules.d/90dmsquash-live | |
358 | %{dracutlibdir}/modules.d/90kernel-modules | |
359 | %{dracutlibdir}/modules.d/90lvm | |
360 | %{dracutlibdir}/modules.d/90mdraid | |
361 | %{dracutlibdir}/modules.d/90multipath | |
1488a9b3 | 362 | %{dracutlibdir}/modules.d/90qemu |
c5a65990 | 363 | %{dracutlibdir}/modules.d/91crypt-gpg |
24ba78cb | 364 | %{dracutlibdir}/modules.d/91crypt-loop |
c5a65990 HH |
365 | %{dracutlibdir}/modules.d/95debug |
366 | %{dracutlibdir}/modules.d/95resume | |
367 | %{dracutlibdir}/modules.d/95rootfs-block | |
368 | %{dracutlibdir}/modules.d/95dasd | |
369 | %{dracutlibdir}/modules.d/95dasd_mod | |
57575f3c | 370 | %{dracutlibdir}/modules.d/95dasd_rules |
c5a65990 HH |
371 | %{dracutlibdir}/modules.d/95fstab-sys |
372 | %{dracutlibdir}/modules.d/95zfcp | |
57575f3c | 373 | %{dracutlibdir}/modules.d/95zfcp_rules |
c5a65990 HH |
374 | %{dracutlibdir}/modules.d/95terminfo |
375 | %{dracutlibdir}/modules.d/95udev-rules | |
a7c9cbe1 | 376 | %{dracutlibdir}/modules.d/95virtfs |
04ab68a4 | 377 | %if %{undefined _unitdir} |
c5a65990 | 378 | %{dracutlibdir}/modules.d/96securityfs |
c5a65990 | 379 | %{dracutlibdir}/modules.d/97masterkey |
c5a65990 | 380 | %{dracutlibdir}/modules.d/98integrity |
04ab68a4 HH |
381 | %endif |
382 | %{dracutlibdir}/modules.d/97biosdevname | |
383 | %{dracutlibdir}/modules.d/98ecryptfs | |
d33d6077 | 384 | %{dracutlibdir}/modules.d/98pollcdrom |
639bd487 | 385 | %{dracutlibdir}/modules.d/98selinux |
c5a65990 | 386 | %{dracutlibdir}/modules.d/98syslog |
6e26f9b4 | 387 | %{dracutlibdir}/modules.d/98systemd |
c5a65990 HH |
388 | %{dracutlibdir}/modules.d/98usrmount |
389 | %{dracutlibdir}/modules.d/99base | |
390 | %{dracutlibdir}/modules.d/99fs-lib | |
5c4bb360 | 391 | %{dracutlibdir}/modules.d/99img-lib |
c5a65990 | 392 | %{dracutlibdir}/modules.d/99shutdown |
837a5a60 | 393 | %attr(0644,root,root) %ghost %config(missingok,noreplace) %{_localstatedir}/log/dracut.log |
41f90cbe | 394 | %dir %{_sharedstatedir}/initramfs |
b019d405 | 395 | %if %{defined _unitdir} |
2023d8eb HH |
396 | %{_unitdir}/dracut-shutdown.service |
397 | %{_unitdir}/shutdown.target.wants/dracut-shutdown.service | |
cbd69dc6 HH |
398 | %{_unitdir}/dracut-cmdline.service |
399 | %{_unitdir}/dracut-initqueue.service | |
400 | %{_unitdir}/dracut-mount.service | |
401 | %{_unitdir}/dracut-pre-mount.service | |
402 | %{_unitdir}/dracut-pre-pivot.service | |
403 | %{_unitdir}/dracut-pre-trigger.service | |
404 | %{_unitdir}/dracut-pre-udev.service | |
405 | %{_unitdir}/initrd.target.wants/dracut-cmdline.service | |
406 | %{_unitdir}/initrd.target.wants/dracut-initqueue.service | |
407 | %{_unitdir}/initrd.target.wants/dracut-mount.service | |
408 | %{_unitdir}/initrd.target.wants/dracut-pre-mount.service | |
409 | %{_unitdir}/initrd.target.wants/dracut-pre-pivot.service | |
410 | %{_unitdir}/initrd.target.wants/dracut-pre-trigger.service | |
411 | %{_unitdir}/initrd.target.wants/dracut-pre-udev.service | |
412 | ||
4cfd24d1 | 413 | %endif |
9dd9d81f HH |
414 | %if 0%{?fedora} || 0%{?rhel} > 6 |
415 | %{_prefix}/lib/kernel/install.d/50-dracut.install | |
416 | %endif | |
ec74fa87 HH |
417 | |
418 | %files network | |
78cd7629 | 419 | %defattr(-,root,root,0755) |
c5a65990 HH |
420 | %{dracutlibdir}/modules.d/40network |
421 | %{dracutlibdir}/modules.d/95fcoe | |
422 | %{dracutlibdir}/modules.d/95iscsi | |
423 | %{dracutlibdir}/modules.d/90livenet | |
1488a9b3 | 424 | %{dracutlibdir}/modules.d/90qemu-net |
72ee74b9 | 425 | %{dracutlibdir}/modules.d/95cifs |
c5a65990 HH |
426 | %{dracutlibdir}/modules.d/95nbd |
427 | %{dracutlibdir}/modules.d/95nfs | |
a29cf54c | 428 | %{dracutlibdir}/modules.d/95ssh-client |
c5a65990 HH |
429 | %{dracutlibdir}/modules.d/45ifcfg |
430 | %{dracutlibdir}/modules.d/95znet | |
08f06c93 HH |
431 | %{dracutlibdir}/modules.d/95fcoe-uefi |
432 | %{dracutlibdir}/modules.d/99uefi-lib | |
78cd7629 | 433 | |
7a1f355f | 434 | %if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} |
4d1661d3 HH |
435 | %files fips |
436 | %defattr(-,root,root,0755) | |
c5a65990 | 437 | %{dracutlibdir}/modules.d/01fips |
a42b2b81 | 438 | %{dracutlibdir}/dracut.conf.d/40-fips.conf |
78d5cf7c | 439 | %config(missingok) /etc/system-fips |
228694e5 | 440 | %endif |
ec74fa87 | 441 | |
2e1b9171 HH |
442 | %files fips-aesni |
443 | %defattr(-,root,root,0755) | |
b40e38db HH |
444 | |
445 | %if %{with doc} | |
2e1b9171 | 446 | %doc COPYING |
b40e38db HH |
447 | %endif |
448 | ||
c5a65990 | 449 | %{dracutlibdir}/modules.d/02fips-aesni |
2e1b9171 | 450 | |
52881470 HH |
451 | %files caps |
452 | %defattr(-,root,root,0755) | |
c5a65990 | 453 | %{dracutlibdir}/modules.d/02caps |
52881470 | 454 | |
3b403b32 | 455 | %files tools |
21007cb6 | 456 | %defattr(-,root,root,0755) |
b40e38db HH |
457 | |
458 | %if %{with doc} | |
459 | %doc %{_mandir}/man8/dracut-catimages.8* | |
460 | %endif | |
461 | ||
ed919de0 | 462 | %{_bindir}/dracut-catimages |
21007cb6 HH |
463 | %dir /boot/dracut |
464 | %dir /var/lib/dracut | |
465 | %dir /var/lib/dracut/overlay | |
466 | ||
18e61d3d | 467 | %files config-generic |
e22eb857 | 468 | %defattr(-,root,root,0755) |
18e61d3d | 469 | %{dracutlibdir}/dracut.conf.d/02-generic-image.conf |
e22eb857 | 470 | |
18e61d3d | 471 | %files config-rescue |
e22eb857 | 472 | %defattr(-,root,root,0755) |
18e61d3d HH |
473 | %{dracutlibdir}/dracut.conf.d/02-rescue.conf |
474 | %if 0%{?fedora} || 0%{?rhel} > 6 | |
475 | %{_prefix}/lib/kernel/install.d/51-dracut-rescue.install | |
476 | %{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh | |
477 | %endif | |
e22eb857 | 478 | |
38672ee8 | 479 | %changelog |