mkinitrd-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. Summary: Creates an initial ramdisk image for preloading modules.
  2. Summary(ja): モジュールをプリロードするための初期RAMディスク(initramfs)作成ユーティリティ
  3. Name: mkinitrd
  4. Version: 6.0.93
  5. Release: 25%{?_dist_release}
  6. License: GPLv2+
  7. Group: System Environment/Base
  8. Source0: mkinitrd-%{version}.tar.bz2
  9. Patch11: mkinitrd-6.0.93-add-drm-whitelist.patch
  10. Patch12: mkinitrd-6.0.93-fix-detect-usb-storage.patch
  11. Patch13: mkinitrd-6.0.93-no-daemonize-plymouth.patch
  12. Patch14: mkinitrd-6.0.93-noselinux.patch
  13. Patch15: mkinitrd-6.0.93-restrict-udev-messages.patch
  14. Patch20: mkinitrd-6.0.93-tuxonice.patch
  15. Patch21: mkinitrd-6.0.93-remove-bash4ism.patch
  16. Patch22: mkinitrd-6.0.93-fix-resolving-library-deps.patch
  17. Patch23: mkinitrd-6.0.93-add-nouveau-radeon-to-whitelist.patch
  18. Patch24: mkinitrd-6.0.93-add-drm-drivers-for-hardware-with-no-currently-loaded.patch
  19. Patch25: mkinitrd-6.0.93-nokmsboot-option.patch
  20. Patch26: mkinitrd-6.0.93-gcc46.patch
  21. Patch27: mkinitrd-6.0.93-kmod.patch
  22. Patch28: mkinitrd-6.0.93-loadusb.patch
  23. Patch29: mkinitrd-6.0.93-devtmpfs.patch
  24. Patch30: mkinitrd-6.0.93-create-etc-blkid.patch
  25. Patch31: mkinitrd/mkinitrd-6.0.93-lvm2-2.02.98.patch
  26. Patch32: mkinitrd-6.0.93-no_scsi_wait_scan.patch
  27. Patch33: mkinitrd-6.0.93-resolve-device-name.patch
  28. Patch34: mkinitrd-6.0.93-firmware_copy_fix.patch
  29. Patch100: mkinitrd-modern-toolchain.patch
  30. Patch101: mkinitrd-function-adhoc.patch
  31. ExclusiveOs: Linux
  32. URL: git://git.fedoraproject.org/git/hosted/mkinitrd
  33. Requires: /bin/sh, /sbin/modprobe, /sbin/losetup
  34. Requires: fileutils, grep, mount, gzip, tar, mktemp
  35. Requires: lvm2
  36. Requires: filesystem >= 2.1.0, cpio, device-mapper, initscripts
  37. Requires: coreutils
  38. Requires: mdadm, elfutils-libelf, isomd5sum, plymouth
  39. Requires: util-linux-ng
  40. BuildRequires: popt-devel, elfutils-libelf-devel, elfutils-devel
  41. BuildRequires: libblkid-devel, parted-devel >= 1.8.5, pkgconfig
  42. BuildRequires: device-mapper-devel, python-devel
  43. BuildRequires: python, util-linux-ng, libnl-devel
  44. BuildRequires: libuuid-devel
  45. %ifnarch s390 s390x
  46. Requires: dmraid
  47. Requires: kbd
  48. %endif
  49. Requires: nash = %{version}-%{release}
  50. Requires: grubby
  51. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  52. Vendor: Project Vine
  53. Distribution: Vine Linux
  54. Packager: daisuke
  55. %description
  56. mkinitrd creates filesystem images for use as initial ram filesystem
  57. (initramfs) images. These images are used to find and mount the root
  58. filesystem.
  59. %package devel
  60. Summary: C header files and library for functionality exported by libnash.
  61. Summary(ja): C header files and library for functionality exported by libnash.
  62. Group: Development/Libraries
  63. Requires: glibc-devel, pkgconfig, e2fsprogs-devel, mkinitrd
  64. Requires: nash = %{version}-%{release}
  65. %package -n libbdevid-python
  66. Summary: Python bindings for libbdevid
  67. Summary(ja): Python bindings for libbdevid
  68. Group: System Environment/Libraries
  69. Requires: e2fsprogs, device-mapper-libs
  70. Requires: python, nash = %{version}-%{release}
  71. %package -n nash
  72. Summary: nash
  73. Summary(ja): nash
  74. Group: System Environment/Base
  75. Requires: parted, device-mapper-libs, e2fsprogs
  76. Requires: popt
  77. Requires: openssl, zlib
  78. Provides: libbdevid = %{version}-%{release}
  79. Obsoletes: libbdevid < %{version}-%{release}
  80. %description devel
  81. C header files and library for functionality exported by libnash.
  82. %description -n libbdevid-python
  83. Python bindings for libbdevid.
  84. %description -n nash
  85. nash
  86. %prep
  87. %setup -q -n mkinitrd-%{version}
  88. %patch11 -p1
  89. %patch12 -p1
  90. %patch13 -p1
  91. %patch14 -p1
  92. %patch15 -p1
  93. %patch20 -p1
  94. %patch21 -p1
  95. %patch22 -p1
  96. %patch23 -p1
  97. %patch24 -p1
  98. %patch25 -p1
  99. %patch26 -p1
  100. %patch27 -p1
  101. %patch28 -p1
  102. %patch30 -p1
  103. %patch34 -p0
  104. %if "%{_dist_release}" >= "vl7"
  105. %patch29 -p1
  106. %patch31 -p1
  107. %patch32 -p1
  108. %patch33 -p0
  109. %patch100 -p1
  110. %patch101 -p1
  111. %endif
  112. %build
  113. make LIB=%{_lib}
  114. make LIB=%{_lib} test
  115. %install
  116. rm -rf $RPM_BUILD_ROOT
  117. make LIB=%{_lib} DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
  118. rm -f $RPM_BUILD_ROOT/sbin/bdevid $RPM_BUILD_ROOT/%{_includedir}/blkent.h
  119. # conflicts with dracut
  120. rm -f %{buildroot}/sbin/lsinitrd
  121. %clean
  122. rm -rf $RPM_BUILD_ROOT
  123. %files
  124. %defattr(-,root,root)
  125. %attr(755,root,root) /sbin/mkinitrd
  126. %attr(644,root,root) %{_mandir}/man8/mkinitrd.8*
  127. %attr(755,root,root) /usr/libexec/mkliveinitrd
  128. %attr(755,root,root) /usr/libexec/initrd-functions
  129. %files devel
  130. %defattr(-,root,root)
  131. %{_libdir}/libnash.so
  132. %{_libdir}/libbdevid.so
  133. %{_libdir}/libbdevidprobe.a
  134. %{_libdir}/pkgconfig/libnash.pc
  135. %{_libdir}/pkgconfig/libbdevid.pc
  136. %{_libdir}/pkgconfig/libbdevidprobe.pc
  137. %{_includedir}/nash.h
  138. %{_includedir}/nash
  139. %{_includedir}/bdevid.h
  140. %{_includedir}/bdevid
  141. %files -n libbdevid-python
  142. %defattr(-,root,root)
  143. %{python_sitearch}/bdevid.so
  144. %files -n nash
  145. %defattr(-,root,root)
  146. %attr(644,root,root) %{_mandir}/man8/nash.8*
  147. %attr(755,root,root) /sbin/nash
  148. /%{_lib}/bdevid
  149. %{_libdir}/libnash.so.*
  150. %{_libdir}/libbdevid.so.*
  151. %dir %{_sysconfdir}/kernel
  152. %dir %{_sysconfdir}/kernel/postinst.d
  153. %dir %{_sysconfdir}/kernel/prerm.d
  154. %changelog
  155. * Wed Sep 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0.93-25
  156. - dropped /usr/sbin/lsinitrd: conflicts with dracut.
  157. - added Patch100 to build with current toolchain.
  158. - added Patch101.
  159. * Sat Jul 22 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 6.0.93-24
  160. - add patch34 for fix firmware copy error
  161. - remove ppc if-endif
  162. - remove too old changelog (has many many date error)
  163. * Sat Nov 21 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0.93-23
  164. - added Patch33 to fix resolve_device_name().
  165. * Wed Dec 12 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-22
  166. - add patch30 to create /etc/blkid
  167. - add patch31 to support newer lvm2
  168. - add patch32 to use sleep instead of scsi_wait_scan
  169. * Sun Jul 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 6.0.93-21
  170. - rebuild with parted-3.1
  171. * Sun Jul 08 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-20
  172. - add patch29 to mount devtmpfs on /dev (newer udev support)
  173. * Sun Jul 08 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-19
  174. - add patch28 to load xhci-hcd and usb-storage by default
  175. * Fri Jul 06 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-18
  176. - update kmod patch
  177. - install module.{order,builtin} to initrd
  178. * Wed Jul 04 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-17
  179. - fix version
  180. * Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-16
  181. - add patch27 to support kmod
  182. * Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-15
  183. - remove R: insmod.static, add R: modprobe
  184. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 6.0.93-14
  185. - rebuild with python-2.7.2
  186. * Fri Jan 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 6.0.93-13
  187. - rebuild with parted-3.0
  188. - add Patch26 (mkinitrd-6.0.93-gcc46.patch)
  189. * Tue Jul 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-12
  190. - Patch23: add radeon/nouveau to DRM_WHITELIST
  191. - Patch24: add drm drivers for hardware with no currently loaded
  192. drm driver
  193. - Patch25: do not load KMS driver when booted with nokmsboot or
  194. failsage options
  195. * Sat Dec 04 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 6.0.93-11
  196. - add BuildRequires: libuuid-devel
  197. * Tue Nov 9 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 6.0.93-10
  198. - rebuilt with parted 2.3
  199. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 6.0.93-9
  200. - rebuilt with rpm-4.8.1 for pkg-config
  201. * Tue May 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-8
  202. - add Patch22 to fix resolving library dependencies
  203. * Mon Apr 12 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-7
  204. - add Patch21 to remove bash4ism
  205. * Thu Mar 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 6.0.93-6
  206. - Requires powerpc-utils instead of ppc64-utils
  207. * Tue Mar 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-5
  208. - fix typo in patch20
  209. * Thu Mar 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-4
  210. - add Patch20 to support tuxonice
  211. * Tue Mar 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-3
  212. - fix python module path on x86_64
  213. * Mon Feb 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-2
  214. - add Patch11-15 from mdv
  215. * Mon Feb 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0.93-1
  216. - initial build for Vine Linux
  217. * Wed Sep 2 2009 Hans de Goede <hdegoede@redhat.com> - 6.0.93-1
  218. - Move hotplug run to before gpu driver probing (airlied, #520730)
  219. - Fix (non-fatal) syntax error (katzj, #513414)
  220. * Mon Aug 10 2009 Ville Skyttä <ville.skytta@iki.fi> - 6.0.92-3
  221. - Convert specfile to UTF-8.
  222. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.92-2
  223. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  224. * Mon Jul 20 2009 Jeremy Katz <katzj@redhat.com> - 6.0.92-1
  225. - Fix live image booting with udev creating /dev/mapper/control
  226. - Workaround to try to stop the live image dm backing images from showing
  227. up in devkit-disks (#495170)
  228. * Fri Jul 10 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 6.0.91-2
  229. - rebuild against new parted
  230. * Mon Jul 6 2009 Hans de Goede <hdegoede@redhat.com> - 6.0.91-1
  231. - Allow setting VG_LIST in /etc/sysconfig/mkinitrd (#509709)
  232. - Fix mkrootdev failing with norelatime option (#509687)
  233. * Tue Jun 30 2009 Hans de Goede <hdegoede@redhat.com> - 6.0.90-1
  234. - drop e2fsprogs requires (#508407)
  235. - process all PVs in a required VG (#506189)
  236. * Wed Jun 24 2009 Jeremy Katz <katzj@redhat.com> - 6.0.89-1
  237. - grubby is now its own source package as we prepare to let people
  238. try out dracut more
  239. * Mon Jun 22 2009 Jeremy Katz <katzj@redhat.com> - 6.0.88-1
  240. - udev has dropped /lib/udev/vol_id, so use blkid instead (#506360)
  241. - accordingly, require new enough util-linux-ng for blkid -o udev
  242. * Tue Jun 16 2009 Hans de Goede <hdegoede@redhat.com> - 6.0.87-1
  243. - Fix mkinitrd creating a non booting initrd when parted-devel is installed
  244. and the user has made configuration changes resulting in ld.so searching
  245. /usr/lib before /lib (#502221)
  246. - Fix nash' network command not setting the default gateway (#501033)
  247. * Mon Jun 15 2009 Karsten Hopp <karsten@redhat.com> 6.0.86-2.1
  248. - there is no kbd package on s390x, don't require it there
  249. - require libblkid-devel instead on e2fsprogs-devel
  250. * Fri May 29 2009 Peter Jones <pjones@redhat.com> - 6.0.86-2
  251. - Require "kbd" package so keyboard settings will work right after initial
  252. installation. (#501584)
  253. * Thu May 21 2009 Bill Nottingham <notting@redhat.com> - 6.0.86-1
  254. - Reorder font initialization to properly handle KMS
  255. * Tue May 19 2009 Peter Jones <pjones@redhat.com> - 6.0.85-1
  256. - Handle F9's crypttab format as well (#501198)
  257. * Thu May 14 2009 Peter Jones <pjones@redhat.com> - 6.0.84-1
  258. - Don't use fixed device names in cryptsetup (#500830)
  259. * Mon Apr 27 2009 Jeremy Katz <katzj@redhat.com> - 6.0.83-1
  260. - Fix up syntax error in udev rules for live image (#497762)
  261. * Thu Apr 16 2009 Jeremy Katz <katzj@redhat.com> - 6.0.82-1
  262. - Don't show live snapshot dev with devkit-disks (#495170)
  263. - grubby: Don't crash showing "other" sections (hans, #491622)
  264. * Mon Mar 16 2009 Hans de Goede <hdegoede@redhat.com> - 6.0.81-1
  265. - Make mkinitrd work with kernels < 2.6.29 (#487358, #489151)
  266. - Fix booting of i2o devices (#476277)
  267. * Fri Mar 6 2009 Jeremy Katz <katzj@redhat.com> - 6.0.80-1
  268. - Fix up a multi live case to work
  269. * Fri Mar 6 2009 Jeremy Katz <katzj@redhat.com> - 6.0.79-1
  270. - Fix handling of keymaps which are symlinks (hdegoede, #485615)
  271. - Show splash later for live images (mccann)
  272. - Make live initrd boot quieter (#488862)
  273. - First steps of multiple live medium support (Till Maas)
  274. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.78-2
  275. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  276. * Mon Feb 23 2009 Hans de Goede <hdegoede@redhat.com> - 6.0.78-1
  277. - Use dmraid instead of setting up dm tables ourselves, this fixed dmraid10
  278. and via dmraid setups (hdegoede)
  279. - Speed up mkblkdevs (Alexandre Oliva)
  280. - exit() from nash-hotplug when the parent pid dies (Olivier Blin)
  281. - Avoid unnecessarily loading raid456 (#312521, Curtis Doty)
  282. - Fix various segfaults in renameNetworkInterface() (#485309, hdegoede)
  283. * Tue Feb 10 2009 Jeremy Katz <katzj@redhat.com> - 6.0.77-1
  284. - Fix mkliveinitrd with mtd root (#484496)
  285. - Minor boot speedup for the live case
  286. * Wed Feb 4 2009 Hans de Goede <hdegoede@redhat.com> - 6.0.76-1
  287. - Fix configuration of network interfaces for network boot (#481078)
  288. - Fix iscsi chap password being seen as ********
  289. - Handle lv root specified as /dev/dm-X properly (#471729)
  290. - Initial commit of EXTLINUX (no menu) support
  291. - Do not call dm_resolve_name on dmraidsets names, sometimes it fails, and
  292. it is not necessary, this fixes the dmraid boot failure seen on
  293. some systems (#476818)
  294. - Make nash mount support relatime (#296361)
  295. - FIX: nash unable to find dm devs by uuid or label (#480667)
  296. * Mon Jan 19 2009 Jeremy Katz <katzj@redhat.com> - 6.0.75-1
  297. - fix live images to be smarter with rootfstype=auto
  298. * Wed Jan 14 2009 Jeremy Katz <katzj@redhat.com> - 6.0.74-1
  299. - modesetting for live images