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