dracut-vl.spec 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. %define dracutlibdir %{_prefix}/lib/dracut
  2. %bcond_without doc
  3. # We ship a .pc file but don't want to have a dep on pkg-config. We
  4. # strip the automatically generated dep here and instead co-own the
  5. # directory.
  6. %global __requires_exclude pkg-config
  7. # Variables must be defined
  8. %define with_nbd 0
  9. %define dist_free_release 3
  10. Name: dracut
  11. Version: 050
  12. Release: %{dist_free_release}%{?_dist_release}
  13. Summary: Initramfs generator using udev
  14. Group: System Environment/Base
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: tomop
  18. # The entire source code is GPLv2+
  19. # except install/* which is LGPLv2+
  20. License: GPLv2+ and LGPLv2+
  21. URL: https://dracut.wiki.kernel.org/
  22. # Source can be generated by
  23. # http://git.kernel.org/?p=boot/dracut/dracut.git;a=snapshot;h=%%{version};sf=tgz
  24. Source0: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut-%{version}.tar.xz
  25. Patch1: 0001.patch
  26. Patch2: 0002.patch
  27. Patch3: 0003.patch
  28. Patch4: 0004.patch
  29. Patch5: 0005.patch
  30. Patch6: 0006.patch
  31. Patch7: 0007.patch
  32. Patch8: 0008.patch
  33. Patch9: 0009.patch
  34. Patch10: 0010.patch
  35. Patch11: 0011.patch
  36. Patch12: 0012.patch
  37. Patch13: 0013.patch
  38. Patch14: 0014.patch
  39. Patch15: 0015.patch
  40. Patch16: 0016.patch
  41. Patch17: 0017.patch
  42. Patch18: 0018.patch
  43. Patch19: 0019.patch
  44. Patch20: 0020.patch
  45. Patch21: 0021.patch
  46. Patch22: 0022.patch
  47. Patch23: 0023.patch
  48. Patch24: 0024.patch
  49. Patch25: 0025.patch
  50. Patch1000: dracut-050-resolve-symlink.patch
  51. Source1: https://www.gnu.org/licenses/lgpl-2.1.txt
  52. Source1000: dracut-warpclock.tar.gz
  53. Source2000: vine.conf
  54. Source2001: vine-module-setup.sh
  55. Source2002: vine-usb-pre-udev.sh
  56. Source2003: ChangeLog.fedora
  57. BuildRequires: bash git
  58. BuildRequires: kmod-devel >= 15
  59. %if 0%{?fedora} || 0%{?rhel}
  60. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  61. BuildRequires: pkgconfig
  62. %endif
  63. %if 0%{?fedora}
  64. BuildRequires: bash-completion
  65. %endif
  66. %if 0%{?suse_version}
  67. BuildRoot: %{_tmppath}/%{name}-%{version}-build
  68. %endif
  69. %if %{with doc}
  70. %if 0%{?fedora} || 0%{?rhel}
  71. BuildRequires: docbook-style-xsl docbook-dtds libxslt
  72. %endif
  73. %if 0%{?suse_version}
  74. -BuildRequires: docbook-xsl-stylesheets libxslt
  75. %endif
  76. BuildRequires: asciidoc
  77. %endif
  78. %if 0%{?fedora} > 12 || 0%{?rhel}
  79. # no "provides", because dracut does not offer
  80. # all functionality of the obsoleted packages
  81. Obsoletes: mkinitrd < 6.0.94
  82. Obsoletes: mkinitrd-devel < 6.0.94
  83. Obsoletes: nash < 6.0.94
  84. Obsoletes: libbdevid-python < 6.0.94
  85. %endif
  86. %if 0%{?fedora} > 16 || 0%{?rhel} > 6
  87. BuildRequires: systemd-units
  88. %endif
  89. Obsoletes: dracut-kernel < 005
  90. Provides: dracut-kernel = %{version}-%{release}
  91. Obsoletes: dracut < 030
  92. Obsoletes: dracut-norescue < 030
  93. Provides: dracut-norescue = %{version}-%{release}
  94. Requires: bash >= 4
  95. Requires: coreutils
  96. Requires: cpio
  97. Requires: filesystem >= 2.1.0
  98. Requires: findutils
  99. Requires: grep
  100. Requires: kmod
  101. Requires: sed
  102. Requires: xz
  103. Requires: xz-lzma-compat
  104. Requires: gzip
  105. Recommends: grubby
  106. Recommends: hardlink
  107. Recommends: pigz
  108. Recommends: kpartx
  109. %if 0%{?fedora} || 0%{?rhel} > 6
  110. Requires: util-linux >= 2.21
  111. Requires: systemd >= 219
  112. Requires: systemd-udev >= 219
  113. Requires: procps-ng
  114. Conflicts: grubby < 8.23
  115. Conflicts: initscripts < 8.63-1
  116. Conflicts: plymouth < 0.8.0-0.2009.29.09.19.1
  117. Conflicts: bcache-tools < 0-0.14.20130909git
  118. %else
  119. Requires: udev > 166
  120. Requires: util-linux-ng >= 2.21
  121. %endif
  122. Conflicts: mdadm < 3.2.6-14
  123. %description
  124. dracut contains tools to create a bootable initramfs for 2.6 Linux kernels.
  125. Unlike existing implementations, dracut does hard-code as little as possible
  126. into the initramfs. dracut contains various modules which are driven by the
  127. event-based udev. Having root on MD, DM, LVM2, LUKS is supported as well as
  128. NFS, iSCSI, NBD, FCoE with the dracut-network package.
  129. %package network
  130. Summary: dracut modules to build a dracut initramfs with network support
  131. %if 0%{?_module_build}
  132. # In the module-build-service, we have pieces of dracut provided by different
  133. # modules ("base-runtime" provides most functionality, but we need
  134. # dracut-network in "installer". Since these two modules build with separate
  135. # dist-tags, we need to reduce this strict requirement to ignore the dist-tag.
  136. Requires: %{name} >= %{version}-%{dist_free_release}
  137. %else
  138. Requires: %{name} = %{version}-%{release}
  139. %endif
  140. Requires: iputils
  141. Requires: iproute
  142. Requires: dhclient
  143. Obsoletes: dracut-generic < 008
  144. Provides: dracut-generic = %{version}-%{release}
  145. %description network
  146. This package requires everything which is needed to build a generic
  147. all purpose initramfs with network support with dracut.
  148. %if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version}
  149. %package fips
  150. Summary: dracut modules to build a dracut initramfs with an integrity check
  151. Requires: %{name} = %{version}-%{release}
  152. Requires: hmaccalc
  153. %if 0%{?rhel} > 5
  154. # For Alpha 3, we want nss instead of nss-softokn
  155. Requires: nss
  156. %else
  157. Requires: nss-softokn
  158. %endif
  159. Requires: nss-softokn-freebl
  160. %description fips
  161. This package requires everything which is needed to build an
  162. initramfs with dracut, which does an integrity check.
  163. %endif
  164. %package fips-aesni
  165. Summary: dracut modules to build a dracut initramfs with an integrity check with aesni-intel
  166. Requires: %{name}-fips = %{version}-%{release}
  167. %description fips-aesni
  168. This package requires everything which is needed to build an
  169. initramfs with dracut, which does an integrity check and adds the aesni-intel kernel module.
  170. %package caps
  171. Summary: dracut modules to build a dracut initramfs which drops capabilities
  172. Requires: %{name} = %{version}-%{release}
  173. Requires: libcap
  174. %description caps
  175. This package requires everything which is needed to build an
  176. initramfs with dracut, which drops capabilities.
  177. %package live
  178. Summary: dracut modules to build a dracut initramfs with live image capabilities
  179. %if 0%{?_module_build}
  180. # See the network subpackage comment.
  181. Requires: %{name} >= %{version}-%{dist_free_release}
  182. %else
  183. Requires: %{name} = %{version}-%{release}
  184. %endif
  185. Requires: %{name}-network = %{version}-%{release}
  186. Requires: tar gzip coreutils bash device-mapper curl
  187. %description live
  188. This package requires everything which is needed to build an
  189. initramfs with dracut, with live image capabilities, like Live CDs.
  190. %package config-generic
  191. Summary: dracut configuration to turn off hostonly image generation
  192. Requires: %{name} = %{version}-%{release}
  193. Obsoletes: dracut-nohostonly < 030
  194. Provides: dracut-nohostonly = %{version}-%{release}
  195. %description config-generic
  196. This package provides the configuration to turn off the host specific initramfs
  197. generation with dracut and generates a generic image by default.
  198. %package config-rescue
  199. Summary: dracut configuration to turn on rescue image generation
  200. Requires: %{name} = %{version}-%{release}
  201. Obsoletes: dracut < 030
  202. %description config-rescue
  203. This package provides the configuration to turn on the rescue initramfs
  204. generation with dracut.
  205. %package tools
  206. Summary: dracut tools to build the local initramfs
  207. Requires: %{name} = %{version}-%{release}
  208. %description tools
  209. This package contains tools to assemble the local initrd and host configuration.
  210. %prep
  211. %autosetup -n %{name}-%{version} -S git_am
  212. cp %{SOURCE1} .
  213. cp %{SOURCE2003} .
  214. %build
  215. %configure \
  216. %if %{defined _unitdir}
  217. --systemdsystemunitdir=%{_unitdir} \
  218. %endif
  219. --bashcompletiondir=$(pkg-config \
  220. --variable=completionsdir bash-completion) \
  221. --libdir=%{_prefix}/lib \
  222. %if %{without doc}
  223. --disable-documentation \
  224. %endif
  225. ${NULL}
  226. make %{?_smp_mflags}
  227. %install
  228. rm -rf -- $RPM_BUILD_ROOT
  229. make %{?_smp_mflags} install \
  230. DESTDIR=$RPM_BUILD_ROOT \
  231. libdir=%{_prefix}/lib
  232. echo "DRACUT_VERSION=%{version}-%{release}" > $RPM_BUILD_ROOT/%{dracutlibdir}/dracut-version.sh
  233. %if 0%{?fedora} == 0 && 0%{?rhel} == 0 && 0%{?suse_version} == 0
  234. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/01fips
  235. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/02fips-aesni
  236. %endif
  237. %if %{defined _unitdir}
  238. # for systemd, better use systemd-bootchart
  239. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00bootchart
  240. %else
  241. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00systemd-bootchart
  242. %endif
  243. # we do not support dash in the initramfs
  244. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00dash
  245. # we do not support mksh in the initramfs
  246. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00mksh
  247. # remove gentoo specific modules
  248. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/50gensplash
  249. %if %{defined _unitdir}
  250. # with systemd IMA and selinux modules do not make sense
  251. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/96securityfs
  252. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/97masterkey
  253. rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/98integrity
  254. %endif
  255. mkdir -p $RPM_BUILD_ROOT/boot/dracut
  256. mkdir -p $RPM_BUILD_ROOT/var/lib/dracut/overlay
  257. mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log
  258. touch $RPM_BUILD_ROOT%{_localstatedir}/log/dracut.log
  259. mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/initramfs
  260. install -m 0644 %{SOURCE2000} %{buildroot}%{dracutlibdir}/dracut.conf.d/01-dist.conf
  261. %if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
  262. install -m 0644 dracut.conf.d/fips.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/40-fips.conf
  263. %endif
  264. %if 0%{?fedora} <= 12 && 0%{?rhel} < 6 && 0%{?suse_version} <= 9999
  265. rm -f -- $RPM_BUILD_ROOT%{_bindir}/mkinitrd
  266. rm -f -- $RPM_BUILD_ROOT%{_bindir}/lsinitrd
  267. rm -f -- $RPM_BUILD_ROOT%{_mandir}/man8/mkinitrd*
  268. rm -f -- $RPM_BUILD_ROOT%{_mandir}/man1/lsinitrd*
  269. %endif
  270. # FIXME: remove after F19
  271. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d
  272. install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh
  273. echo 'hostonly="no"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-generic-image.conf
  274. echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-rescue.conf
  275. %if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
  276. > $RPM_BUILD_ROOT/etc/system-fips
  277. %endif
  278. #pushd $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/
  279. #tar xvf %{SOURCE1000}
  280. #popd
  281. # make to load EHCI driver at first
  282. mkdir -p %{buildroot}%{dracutlibdir}/modules.d/70ehci_first
  283. install -m755 %{SOURCE2001} %{buildroot}%{dracutlibdir}/modules.d/70ehci_first/module-setup.sh
  284. install -m755 %{SOURCE2002} %{buildroot}%{dracutlibdir}/modules.d/70ehci_first/usb-pre-udev.sh
  285. # fix path to rngd
  286. sed -i -e 's|/usr/sbin/|/sbin/|' \
  287. %{buildroot}%{dracutlibdir}/modules.d/06rngd/rngd.service
  288. %clean
  289. rm -rf -- $RPM_BUILD_ROOT
  290. %files
  291. %defattr(-,root,root,0755)
  292. %if %{with doc}
  293. %doc README* HACKING TODO AUTHORS NEWS dracut.html dracut.png dracut.svg
  294. %endif
  295. %{!?_licensedir:%global license %%doc}
  296. %license COPYING lgpl-2.1.txt
  297. %doc ChangeLog.fedora
  298. %{_bindir}/dracut
  299. %{_datadir}/bash-completion/completions/dracut
  300. %{_datadir}/bash-completion/completions/lsinitrd
  301. %if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999
  302. %{_bindir}/mkinitrd
  303. %{_bindir}/lsinitrd
  304. %endif
  305. %dir %{dracutlibdir}
  306. %dir %{dracutlibdir}/modules.d
  307. %{dracutlibdir}/dracut-functions.sh
  308. %{dracutlibdir}/dracut-init.sh
  309. %{dracutlibdir}/dracut-functions
  310. %{dracutlibdir}/dracut-version.sh
  311. %{dracutlibdir}/dracut-logger.sh
  312. %{dracutlibdir}/dracut-initramfs-restore
  313. %{dracutlibdir}/dracut-install
  314. %{dracutlibdir}/skipcpio
  315. %config(noreplace) %{_sysconfdir}/dracut.conf
  316. %{dracutlibdir}/dracut.conf.d/01-dist.conf
  317. %dir %{_sysconfdir}/dracut.conf.d
  318. %dir %{dracutlibdir}/dracut.conf.d
  319. %dir %{_datadir}/pkgconfig
  320. %{_datadir}/pkgconfig/dracut.pc
  321. %if %{with doc}
  322. %{_mandir}/man8/dracut.8*
  323. %{_mandir}/man8/*service.8*
  324. %if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999
  325. %{_mandir}/man8/mkinitrd.8*
  326. %{_mandir}/man1/lsinitrd.1*
  327. %endif
  328. %{_mandir}/man7/dracut.kernel.7*
  329. %{_mandir}/man7/dracut.cmdline.7*
  330. %{_mandir}/man7/dracut.modules.7*
  331. %{_mandir}/man7/dracut.bootup.7*
  332. %{_mandir}/man5/dracut.conf.5*
  333. %endif
  334. %if %{defined _unitdir}
  335. %{dracutlibdir}/modules.d/00systemd-bootchart
  336. %else
  337. %{dracutlibdir}/modules.d/00bootchart
  338. %endif
  339. %{dracutlibdir}/modules.d/00bash
  340. %{dracutlibdir}/modules.d/00systemd
  341. %{dracutlibdir}/modules.d/00warpclock
  342. %{dracutlibdir}/modules.d/01systemd-initrd
  343. %{dracutlibdir}/modules.d/03modsign
  344. %{dracutlibdir}/modules.d/03rescue
  345. %{dracutlibdir}/modules.d/04watchdog
  346. %{dracutlibdir}/modules.d/05busybox
  347. %{dracutlibdir}/modules.d/06rngd
  348. %{dracutlibdir}/modules.d/10i18n
  349. %{dracutlibdir}/modules.d/30convertfs
  350. %{dracutlibdir}/modules.d/45url-lib
  351. %{dracutlibdir}/modules.d/50drm
  352. %{dracutlibdir}/modules.d/50plymouth
  353. # vine
  354. %{dracutlibdir}/modules.d/70ehci_first
  355. %{dracutlibdir}/modules.d/80lvmmerge
  356. %{dracutlibdir}/modules.d/90btrfs
  357. %{dracutlibdir}/modules.d/90crypt
  358. %{dracutlibdir}/modules.d/90dm
  359. %{dracutlibdir}/modules.d/90dmraid
  360. %{dracutlibdir}/modules.d/90kernel-modules
  361. %{dracutlibdir}/modules.d/90kernel-modules-extra
  362. %{dracutlibdir}/modules.d/90lvm
  363. %{dracutlibdir}/modules.d/90mdraid
  364. %{dracutlibdir}/modules.d/90multipath
  365. %{dracutlibdir}/modules.d/90nvdimm
  366. %{dracutlibdir}/modules.d/90qemu
  367. %{dracutlibdir}/modules.d/90stratis
  368. %{dracutlibdir}/modules.d/90ppcmac
  369. %{dracutlibdir}/modules.d/91crypt-gpg
  370. %{dracutlibdir}/modules.d/91crypt-loop
  371. %{dracutlibdir}/modules.d/95debug
  372. %{dracutlibdir}/modules.d/95fstab-sys
  373. %{dracutlibdir}/modules.d/95lunmask
  374. %{dracutlibdir}/modules.d/95resume
  375. %{dracutlibdir}/modules.d/95rootfs-block
  376. %{dracutlibdir}/modules.d/95terminfo
  377. %{dracutlibdir}/modules.d/95udev-rules
  378. %{dracutlibdir}/modules.d/95virtfs
  379. %ifarch s390 s390x
  380. %{dracutlibdir}/modules.d/80cms
  381. %{dracutlibdir}/modules.d/81cio_ignore
  382. %{dracutlibdir}/modules.d/91zipl
  383. %{dracutlibdir}/modules.d/95dasd
  384. %{dracutlibdir}/modules.d/95dasd_mod
  385. %{dracutlibdir}/modules.d/95dasd_rules
  386. %{dracutlibdir}/modules.d/95dcssblk
  387. %{dracutlibdir}/modules.d/95qeth_rules
  388. %{dracutlibdir}/modules.d/95zfcp
  389. %{dracutlibdir}/modules.d/95zfcp_rules
  390. %else
  391. %exclude %{dracutlibdir}/modules.d/80cms
  392. %exclude %{dracutlibdir}/modules.d/81cio_ignore
  393. %exclude %{dracutlibdir}/modules.d/91zipl
  394. %exclude %{dracutlibdir}/modules.d/95dasd
  395. %exclude %{dracutlibdir}/modules.d/95dasd_mod
  396. %exclude %{dracutlibdir}/modules.d/95dasd_rules
  397. %exclude %{dracutlibdir}/modules.d/95dcssblk
  398. %exclude %{dracutlibdir}/modules.d/95qeth_rules
  399. %exclude %{dracutlibdir}/modules.d/95zfcp
  400. %exclude %{dracutlibdir}/modules.d/95zfcp_rules
  401. %endif
  402. %if %{undefined _unitdir}
  403. %{dracutlibdir}/modules.d/96securityfs
  404. %{dracutlibdir}/modules.d/97masterkey
  405. %{dracutlibdir}/modules.d/98integrity
  406. %endif
  407. %{dracutlibdir}/modules.d/97biosdevname
  408. %{dracutlibdir}/modules.d/98ecryptfs
  409. %{dracutlibdir}/modules.d/98pollcdrom
  410. %{dracutlibdir}/modules.d/98selinux
  411. %{dracutlibdir}/modules.d/98syslog
  412. %{dracutlibdir}/modules.d/98dracut-systemd
  413. %{dracutlibdir}/modules.d/98usrmount
  414. %{dracutlibdir}/modules.d/99base
  415. %{dracutlibdir}/modules.d/99fs-lib
  416. %{dracutlibdir}/modules.d/99shutdown
  417. %{dracutlibdir}/modules.d/99squash
  418. %attr(0644,root,root) %ghost %config(missingok,noreplace) %{_localstatedir}/log/dracut.log
  419. %dir %{_sharedstatedir}/initramfs
  420. %if %{defined _unitdir}
  421. %{_unitdir}/dracut-shutdown.service
  422. %{_unitdir}/sysinit.target.wants/dracut-shutdown.service
  423. %{_unitdir}/dracut-cmdline.service
  424. %{_unitdir}/dracut-initqueue.service
  425. %{_unitdir}/dracut-mount.service
  426. %{_unitdir}/dracut-pre-mount.service
  427. %{_unitdir}/dracut-pre-pivot.service
  428. %{_unitdir}/dracut-pre-trigger.service
  429. %{_unitdir}/dracut-pre-udev.service
  430. %{_unitdir}/initrd.target.wants/dracut-cmdline.service
  431. %{_unitdir}/initrd.target.wants/dracut-initqueue.service
  432. %{_unitdir}/initrd.target.wants/dracut-mount.service
  433. %{_unitdir}/initrd.target.wants/dracut-pre-mount.service
  434. %{_unitdir}/initrd.target.wants/dracut-pre-pivot.service
  435. %{_unitdir}/initrd.target.wants/dracut-pre-trigger.service
  436. %{_unitdir}/initrd.target.wants/dracut-pre-udev.service
  437. %endif
  438. %{_prefix}/lib/kernel/install.d/50-dracut.install
  439. %files network
  440. %defattr(-,root,root,0755)
  441. %{dracutlibdir}/modules.d/02systemd-networkd
  442. %{dracutlibdir}/modules.d/35network-legacy
  443. %{dracutlibdir}/modules.d/35network-manager
  444. %{dracutlibdir}/modules.d/40network
  445. %{dracutlibdir}/modules.d/90kernel-network-modules
  446. %{dracutlibdir}/modules.d/95fcoe
  447. %{dracutlibdir}/modules.d/95iscsi
  448. %{dracutlibdir}/modules.d/90qemu-net
  449. %{dracutlibdir}/modules.d/95cifs
  450. %{dracutlibdir}/modules.d/95nbd
  451. %{dracutlibdir}/modules.d/95nfs
  452. %{dracutlibdir}/modules.d/95ssh-client
  453. %{dracutlibdir}/modules.d/45ifcfg
  454. %ifarch s390 s390x
  455. %{dracutlibdir}/modules.d/95znet
  456. %else
  457. %exclude %{dracutlibdir}/modules.d/95znet
  458. %endif
  459. %{dracutlibdir}/modules.d/95fcoe-uefi
  460. %{dracutlibdir}/modules.d/99uefi-lib
  461. %if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
  462. %files fips
  463. %defattr(-,root,root,0755)
  464. %{dracutlibdir}/modules.d/01fips
  465. %{dracutlibdir}/dracut.conf.d/40-fips.conf
  466. %config(missingok) /etc/system-fips
  467. %files fips-aesni
  468. %defattr(-,root,root,0755)
  469. %{dracutlibdir}/modules.d/02fips-aesni
  470. %endif
  471. %files caps
  472. %defattr(-,root,root,0755)
  473. %{dracutlibdir}/modules.d/02caps
  474. %files live
  475. %defattr(-,root,root,0755)
  476. %{dracutlibdir}/modules.d/99img-lib
  477. %{dracutlibdir}/modules.d/90dmsquash-live
  478. %{dracutlibdir}/modules.d/90dmsquash-live-ntfs
  479. %{dracutlibdir}/modules.d/90livenet
  480. %files tools
  481. %defattr(-,root,root,0755)
  482. %if %{with doc}
  483. %doc %{_mandir}/man8/dracut-catimages.8*
  484. %endif
  485. %{_bindir}/dracut-catimages
  486. %dir /boot/dracut
  487. %dir /var/lib/dracut
  488. %dir /var/lib/dracut/overlay
  489. %files config-generic
  490. %defattr(-,root,root,0755)
  491. %{dracutlibdir}/dracut.conf.d/02-generic-image.conf
  492. %files config-rescue
  493. %defattr(-,root,root,0755)
  494. %{dracutlibdir}/dracut.conf.d/02-rescue.conf
  495. %{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
  496. %{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh
  497. %changelog
  498. * Fri Apr 03 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 050-3
  499. - added support for recursive symlink of /sbin/init.
  500. * Thu Apr 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 050-2
  501. - fixed path to rngd.
  502. - truncated %%changelog: old logs are moved to ChangeLog.fedora.
  503. * Wed Apr 01 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 050-1
  504. - new upstream release.
  505. * Fri Sep 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 049-2
  506. - imported Patch100 and 101 from rawhide.
  507. - added R:xz-lzma-compat.
  508. * Tue Jan 01 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 049-1
  509. - new upstream release.
  510. * Fri Sep 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 046-10
  511. - fixed release number.
  512. * Thu Sep 14 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 046-9
  513. - imported warpclock scripts from openSUSE.
  514. * Tue Sep 12 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 046-8
  515. - initial build for Vine Linux.