/[packages]/updates/5/dracut/current/SPECS/dracut.spec
ViewVC logotype

Contents of /updates/5/dracut/current/SPECS/dracut.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1191335 - (show annotations) (download)
Sun Jan 7 19:44:09 2018 UTC (10 months, 1 week ago) by tmb
File size: 7187 byte(s)
add early microcode loadingsupport for Amd fam16, fam17 and newer
1 Summary: Next generation initrd image generator
2 Name: dracut
3 Version: 038
4 %define subrel 2
5 Release: %mkrel 21
6 Group: System/Base
7 License: GPLv2+
8 URL: https://dracut.wiki.kernel.org/
9 Source0: http://www.kernel.org/pub/linux/utils/boot/dracut/%{name}-%{version}.tar.xz
10 Source1: 50-%_real_vendor.conf
11 Source2: logo.png
12
13 # Upstream Cherry picks
14 # fix typos in modules.d/98usrmount: bug #11292
15 Patch1: git-master-eab9b75c8a9b106d2f35faae0af51ab1c66e8da1.patch
16
17 # Mageia Patches
18 Patch0500: 0500-Plymouth-customisations-for-Mageia.patch
19 Patch0501: 0501-Use-the-Mageia-naming-for-initrd-files.patch
20 Patch0502: 0502-Handle-upgrades-better.patch
21 Patch0503: 0503-network-Include-70-persistent-net.rules-in-the-netwo.patch
22 Patch0504: 0504-Parse-and-include-the-ide-controller-and-scsi_hostad.patch
23 Patch0505: 0505-lvm-Ensure-LVM-is-initialised-in-non-hostonly-mode.patch
24 Patch0506: 0506-rootfs-block-Support-lilo-style-device-numbers.patch
25 Patch0507: 0507-i18n-Run-console_init-prior-to-udev-startup.patch
26 Patch0508: 0508-mageia-Add-a-convertfs-hacks-for-packaging-quirks.patch
27 Patch0509: 0509-udev-rules-Pre-usrmove-systemd-installs-might-not-fi.patch
28 Patch0510: 0510-dracut-functions.sh-Make-sure-to-install-full-path-P.patch
29 Patch0511: 0511-Match-.map-files-before-.inc-files-when-looking-for-.patch
30 Patch0512: 0512-Support-the-simple-upgrade-preparation-API-mga-9744.patch
31 Patch0513: 0513-mgalive-A-module-to-mount-Mageia-Live-media.patch
32 Patch0514: 0514-mgainstaller-Add-a-module-used-to-generate-the-Magei.patch
33 Patch0515: 0515-kadeploy-Add-a-kd-deploy-module.patch
34 # (tmb) disable as it breaks on efi/gpt
35 # Patch0516: 0516-Revert-Revert-dmraid-let-dmraid-setup-the-partitions.patch
36 Patch0517: 0517-base-Set-udevd-log-level-via-environment-var-to-cove.patch
37 # (tmb) sent upstream 2014-12-21
38 Patch0518: 0518-dracut-xhci-modules-kernel-3.18.patch
39 Patch0519: 0519-dracut-functions.sh-avoid-tokenizing-ldconfig-output.patch
40 Patch0520: 0520-kernel-modules-increase-SDHCI-driver-inclusion.patch
41 Patch0521: 0521-kernel-modules-hid-logitech-hidpp.patch
42 Patch0522: 0522-dracut-lib.sh-cancel_wait_for_dev-fixed-double-escap.patch
43 Patch0523: 0523-dracut.sh-Avoid-duplicate-devices-in-host_devs.patch
44 Patch0524: 0524-base-Don-t-wait-for-swap-devices-in-host-only-mode.patch
45 Patch0525: 0525-resume-Ensure-we-actually-wait-for-the-dev-resume-de.patch
46 Patch0526: 0526-resume-Do-not-hardcode-the-resume-device-in-the-init.patch
47 Patch0527: 0527-mdraid-mdraid_start.sh-tell-mainloop-if-we-make-prog.patch
48 Patch0528: 0528-drm-module-setup.sh-radeon-needs-amdkfd.patch
49 Patch0529: 0529-99base-Add-chown-binary.patch
50 Patch0530: 0530-resume-make-use-of-systemd-hibernate-resume-if-exist.patch
51 # mga#16657, needed to fix Haswell TSX bug
52 Patch0531: 0531-dracut-038-enable-early_microcode-by-default.patch
53 Patch0532: 0532-Add-early-microcode-support-for-AMD-family-16h.patch
54 Patch0533: 0533-Support-Microcode-Updates-for-AMD-CPU-Family-0x17.patch
55 Patch0534: 0534-Simplify-microcode-lookup-for-for-AMD-CPUs.patch
56
57 # Security patches
58 Patch1000: 0020-dracut.sh-create-the-initramfs-non-world-readable-al.patch
59
60 Requires(pre): filesystem
61 Requires: udev
62 Requires: util-linux
63 Requires: kmod
64 Requires: e2fsprogs
65 Requires: cpio
66 Requires: coreutils
67 Requires: findutils
68 Requires: binutils
69 Requires: grep
70 Requires: mktemp
71 Requires: bash
72 Requires: dash
73 Requires: kbd
74 Requires: tar
75 Requires: gzip
76 Requires: bzip2
77 Requires: file
78 Requires: module-init-tools
79 Requires: bridge-utils
80 Requires: initscripts
81 Recommends: plymouth
82 Requires: bootloader-utils
83 Requires(post): rpm-helper >= 0.24.8-1
84 Requires(preun): rpm-helper >= 0.24.8-1
85 # (cg) Replace mkinitrd and nuke all it's sub-packages
86 Provides: mkinitrd = 6.0.93-32
87 Obsoletes: mkinitrd < 6.0.93-32
88 Obsoletes: nash
89 Obsoletes: libbdevid-python
90 # plymouth-populate-initrd in old plymouth-scripts packages fails to find
91 # dracut-functions
92 Conflicts: plymouth-scripts < 0.8.4-0.20111214.2
93 Conflicts: bootsplash < 3.3.9-1
94 BuildRequires: asciidoc
95 BuildRequires: docbook-dtd45-xml
96 BuildRequires: docbook-style-xsl
97 BuildRequires: xsltproc
98 BuildRequires: dash
99 BuildRequires: bash
100
101 %description
102 Dracut contains tools to create a bootable initramfs for Linux kernels.
103 Unlike existing implementations, dracut does hard-code as little as possible
104 into the initramfs. Dracut contains various modules which are driven by the
105 event-based udev. Having root on MD, DM, LVM2, LUKS is supported as well as
106 NFS, iSCSI, NBD, FCoE with the dracut-network package.
107
108 %prep
109 %setup -q
110 %apply_patches
111 # (cg) We don't want backup file (todo: make apply_patches accept a -n argument to not do backups)
112 find -name "*.[0-9][0-9][0-9][0-9]" -delete
113
114 %build
115 export CFLAGS="%{optflags}"
116 %make
117
118 %install
119 %makeinstall_std \
120 sbindir=/sbin \
121 sysconfdir=%{_sysconfdir} \
122 systemdsystemunitdir=%{_unitdir} \
123 mandir=%{_mandir}
124
125 install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/dracut.conf.d
126 install -m 755 -d %{buildroot}%{_datadir}/dracut
127 install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/dracut/logo.png
128
129 # bluca remove patch backup files
130 find %{buildroot} -name \*.\*.orig -exec rm {} \;
131
132 # fix permission of module files
133 chmod +x %{buildroot}%{_prefix}/lib/dracut/modules.d/*/*.sh
134
135 mkdir -p %{buildroot}/boot/dracut
136 mkdir -p %{buildroot}%{_var}/lib/dracut/overlay
137
138 # (cg) For now provide compatibility symlinks in %_sbindir as this was the old
139 # location for mkinitrd and some tools may hard-code the path
140 mkdir -p %{buildroot}%{_sbindir}
141 ln -sf %{_bindir}/mkinitrd %{buildroot}%{_sbindir}/mkinitrd
142
143 %triggerpostun -- dracut < 023-11
144 # (cg) Fix world writable initrds due to CVE-2012-4453 (mga#7806)
145 chmod go-r /boot/initrd-3*.img ||:
146
147 %triggerpostun -- dracut < 038-13
148 # (cg) Forget UUIDs for LVM/RAID Swaps. It's more harm than good.
149 rm -f %{_sysconfdir}/dracut.conf.d/51-mageia-resume.conf ||:
150
151 %files
152 %doc README.generic README.modules README.kernel HACKING TODO AUTHORS
153 %dir /boot/dracut
154 %dir %{_datadir}/dracut
155 %dir %{_var}/lib/dracut
156 %dir %{_var}/lib/dracut/overlay
157 %dir %{_prefix}/lib/dracut
158 %config(noreplace) %{_sysconfdir}/dracut.conf
159 %dir %{_sysconfdir}/dracut.conf.d
160 %ghost %attr(644,root,root) %config(noreplace) %{_sysconfdir}/dracut.conf.d/51-mageia-resume.conf
161 %{_sysconfdir}/dracut.conf.d/50-%_real_vendor.conf
162 %{_bindir}/dracut
163 %{_bindir}/dracut-catimages
164 %{_bindir}/lsinitrd
165 %{_bindir}/mkinitrd
166 %{_sbindir}/mkinitrd
167 %{_prefix}/lib/dracut/dracut-functions.sh
168 %{_prefix}/lib/dracut/dracut-functions
169 %{_prefix}/lib/dracut/dracut-initramfs-restore
170 %{_prefix}/lib/dracut/dracut-install
171 %{_prefix}/lib/dracut/dracut-version.sh
172 %{_prefix}/lib/dracut/modules.d
173 %{_prefix}/lib/dracut/dracut-logger.sh
174 %{_prefix}/lib/dracut/skipcpio
175 %{_prefix}/lib/kernel/install.d/50-dracut.install
176 %{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
177 %{_unitdir}/*.service
178 %{_unitdir}/*/*.service
179 %{_datadir}/bash-completion/completions/dracut
180 %{_datadir}/bash-completion/completions/lsinitrd
181 %{_datadir}/dracut/logo.png
182 %{_mandir}/man1/lsinitrd*.1*
183 %{_mandir}/man8/dracut*.8*
184 %{_mandir}/man8/mkinitrd*.8*
185 %{_mandir}/man7/dracut.bootup.7*
186 %{_mandir}/man7/dracut.cmdline.7*
187 %{_mandir}/man7/dracut.kernel.7*
188 %{_mandir}/man7/dracut.modules.7*
189 %{_mandir}/man5/dracut.conf.5*

  ViewVC Help
Powered by ViewVC 1.1.26