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