%define dracutlibdir %{_prefix}/lib/dracut %bcond_without doc # We ship a .pc file but don't want to have a dep on pkg-config. We # strip the automatically generated dep here and instead co-own the # directory. %global __requires_exclude pkgconfig %global mgaconfigver 0.1 Summary: Next generation initrd image generator Name: dracut Version: 108 Release: %mkrel 6.8 Group: System/Base # The entire source code is GPLv2+ # except install/* which is LGPLv2+ # except util/* which is GPLv2 License: GPLv2+ and LGPLv2+ and GPLv2 URL: https://github.com/dracut-ng/dracut-ng Source0: https://github.com/dracut-ng/dracut-ng/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz Source1: logo.png Source2: https://gitweb.mageia.org/software/mageia-dracut-conf/snapshot/mageia-dracut-conf-%{mgaconfigver}.tar.xz # Upstream patches (from https://github.com/dracut-ng/dracut-ng) # up to 2025-10-20. Patch0001: 0001-ci-opensuse.conf.example-change-log-levels.patch Patch0002: 0002-docs-release-document-how-to-create-release-tag.patch Patch0003: 0003-fix-btrfs-write-cmdline-in-install.patch Patch0004: 0004-fix-dracut.sh-lsinitrd.sh-use-obj-copy-dump-set-by-t.patch Patch0005: 0005-test-use-set-u-in-in-test-container.sh.patch Patch0006: 0006-chore-remove-dead-code-that-is-no-longer-expected-to.patch Patch0007: 0007-feat-network-manager-remove-support-for-ifcfg-rh.patch Patch0008: 0008-ci-disable-running-arm64-tests-on-Fedora.patch Patch0009: 0009-fix-Makefile-remove-the-heuristic-to-determine-fallb.patch Patch0010: 0010-fix-dracut-init-remove-the-heuristic-to-determine-fa.patch Patch0011: 0011-fix-dracut-look-for-both-vmlinuz-and-vmlinux-for-UKI.patch Patch0012: 0012-fix-test-make-sure-1-is-not-read-as-an-unbound-varia.patch Patch0013: 0013-ci-debian-install-open-iscsi.patch Patch0014: 0014-fix-dracut-util-crash-if-CMDLINE-ends-with-quotation.patch Patch0015: 0015-test-ISCSI-MULTI-NBD-reenable-running-these-tests-on.patch Patch0016: 0016-test-NFS-use-of-test-dracut-modules.patch Patch0017: 0017-fix-release-force-push-for-updating.patch Patch0018: 0018-test-fix-Linux-kernel-detection-for-qemu-runs.patch Patch0019: 0019-feat-Makefile-set-Dracut-version-on-install.patch Patch0020: 0020-feat-Makefile-introduce-distclean-target.patch Patch0021: 0021-fix-hwdb-make-module-setup.sh-executable.patch Patch0022: 0022-feat-systemd-networkd-do-not-require-bash.patch Patch0023: 0023-fix-dracut-do-not-call-uname-r-in-chroot-environment.patch Patch0024: 0024-test-UEFI-remove-version-check-test-for-kernel-insta.patch Patch0025: 0025-ci-enable-SYSROOT-test-more-to-run-on-arm-daily.patch Patch0026: 0026-feat-dracut.conf.d-move-examples-into-subdirectories.patch Patch0027: 0027-test-drop-setting-DRACUT_PATH.patch Patch0028: 0028-test-SYSTEMD-INITRD-be-more-careful-with-set-e-and-s.patch Patch0029: 0029-test-remove-test-module.patch Patch0030: 0030-fix-make-sure-final-hostonly-value-is-computed-befor.patch Patch0031: 0031-fix-base-silence-error-log-if-shadow-does-not-exists.patch Patch0032: 0032-ci-adopt-test-configuration-without-test-module.patch Patch0033: 0033-fix-livenet-source-img-lib.sh-for-check_live_ram.patch Patch0034: 0034-feat-dracut.sh-output-error-message-for-regenerate-a.patch Patch0035: 0035-fix-dracut-install-the-n-short-option-for-dry-run.patch Patch0036: 0036-fix-dracut-install-the-RUNPATH-expansion-returning-e.patch Patch0037: 0037-fix-dracut-install-the-handling-of-absolute-paths-in.patch Patch0038: 0038-fix-doc_site-remove-reference-to-udev-143.patch Patch0039: 0039-ci-remove-testing-with-ubuntu-latest.patch Patch0040: 0040-fix-systemd-sysext-package-initrd.target.wants-symli.patch Patch0041: 0041-fix-systemd-sysext-skip-manual-systemct-enablement-f.patch Patch0042: 0042-test-remove-leftover-comment.patch Patch0043: 0043-test-NETWORK-coverage-for-bringing-up-network-interf.patch Patch0044: 0044-test-KERNEL-INSTALL-config-path-for-test-dracut-conf.patch Patch0045: 0045-fix-systemd-portabled-initqueue-enable-systemd-type-.patch Patch0046: 0046-fix-kernel-modules-add-Cadence-USB-driver-to-base.patch Patch0047: 0047-refactor-lsinitrd-introduce-cpio_extract-function.patch Patch0048: 0048-refactor-lsinitrd-introduce-cpio_extract_to_stdout-f.patch Patch0049: 0049-refactor-lsinitrd-introduce-cpio_list-function.patch Patch0050: 0050-fix-Makefile-use-install-for-installing-files.patch Patch0051: 0051-fix-lsinitrd-avoid-rechecking-for-squash-images.patch Patch0052: 0052-fix-debian-remove-Debian-12-support.patch Patch0053: 0053-fix-dracut-install-broken-calls-to-mmap-with-0-lengt.patch Patch0054: 0054-revert-efaee44-hostonly_cmdline-should-continue-to-d.patch Patch0055: 0055-chore-always-set-hostonly-and-hostonly_mode.patch Patch0056: 0056-fix-net-lib-always-include-af_packet.patch Patch0057: 0057-fix-network-manager-load-required-kernel-modules.patch Patch0058: 0058-test-NETWORK-remove-the-hostonly_mode-sloppy-workaro.patch Patch0059: 0059-feat-configure-autoconfigure-configprofile.patch Patch0060: 0060-fix-debian.conf-re-enable-hostonly_cmdline.patch Patch0061: 0061-test-do-not-force-set-hostonly_cmdline-to-no.patch Patch0062: 0062-ci-add-arm-testing-to-the-integration-testsuite-for-.patch Patch0063: 0063-fix-ubuntu-set-DISTRIBUTION-when-building-container.patch Patch0064: 0064-fix-man-expand-the-documentation-for-hostonly-cmdlin.patch Patch0065: 0065-fix-man-move-the-documentation-hostonly-and-hostonly.patch Patch0066: 0066-ci-remove-kernel-command-line-workarounds-from-test-.patch Patch0067: 0067-fix-debian-lower-the-ordering-number-for-debian-conf.patch Patch0068: 0068-ci-introduce-networking-tests-into-Daily-integration.patch Patch0069: 0069-fix-dracut-decrease-logging-by-default.patch Patch0070: 0070-fix-dracut-use-name-to-avoid-find-matching-temporary.patch Patch0071: 0071-ci-increase-test-coverage-by-not-forcing-additional-.patch Patch0072: 0072-ci-debian-install-3cpio-on-Debian-and-Ubuntu.patch Patch0073: 0073-chore-deps-bump-actions-checkout-from-4-to-5.patch Patch0074: 0074-chore-deps-bump-actions-upload-pages-artifact-from-3.patch Patch0075: 0075-test-run-qemu-requires-initrd-argument-to-be-last.patch Patch0076: 0076-ci-gentoo-install-networkmanager-when-systemd-is-not.patch Patch0077: 0077-ci-switching-the-main-CI-to-ubuntu-devel-from-ubuntu.patch Patch0078: 0078-docs-update-minimal-versions-in-the-compatibility-ta.patch Patch0079: 0079-fix-dm-dmraid-shellcheck-SC2268.patch Patch0080: 0080-fix-ignore-shellcheck-SC2329-in-addition-to-SC2317.patch Patch0081: 0081-fix-systemd-sysusers-increase-ordering-from-68-to-78.patch Patch0082: 0082-fix-dracut-systemd-avoid-matching-extra-root-substri.patch Patch0083: 0083-fix-resume-avoid-matching-extra-resume-substrings-in.patch Patch0084: 0084-test-remove-unmaintained-tests-MULTINIC-and-BONDBRID.patch Patch0085: 0085-ci-alpine-add-networkmanager-initrd-generator-packag.patch Patch0086: 0086-feat-dracut-make-hostonly-the-default.patch Patch0087: 0087-fix-UKI-explicitly-specify-uname.patch Patch0088: 0088-fix-74nvmf-set-root-nvmf.patch Patch0089: 0089-ci-run-networking-tests-in-more-test-containers-as-d.patch Patch0090: 0090-ci-watchdog-should-not-be-required-for-non-networkin.patch Patch0091: 0091-ci-azurelinux-disable-multipath-dracut-module.patch Patch0092: 0092-fix-dracut-install-handling-of-multiple-sonames-in-d.patch Patch0093: 0093-fix-dracut-install-cache-resolve_deps-calls-for-spee.patch Patch0094: 0094-fix-Makefile-exclude-hidden-directories-from-shellch.patch Patch0095: 0095-fix-kernel-modules-extra-remove-stray-before.patch Patch0096: 0096-refactor-dracut-introduce-cpio_extract-function.patch Patch0097: 0097-ci-ubuntu-exclude-test-30.patch Patch0098: 0098-ci-opensuse-install-zstd-as-that-is-the-configured-c.patch Patch0099: 0099-ci-fix-GA-yml.patch Patch0100: 0100-ci-add-support-for-non-legacy-network-dracut-modules.patch Patch0101: 0101-ci-only-test-network-legacy-as-part-of-Daily-CI.patch Patch0102: 0102-ci-dhclient-is-no-longer-a-requirement-for-server-ne.patch Patch0103: 0103-ci-only-force-include-qemu-dracut-module-in-the-test.patch Patch0104: 0104-test-USR-MOUNT-use-the-same-btrfs-drive-for-both-roo.patch Patch0105: 0105-test-USR-MOUNT-remove-entry-from-fstab.patch Patch0106: 0106-test-USR-MOUNT-improve-readability-by-removing-separ.patch Patch0107: 0107-test-USR-MOUNT-add-a-test-run-for-mounting-btrfs-sub.patch Patch0108: 0108-ci-azure-reenable-FULL-SYSTEMD-on-azurelinux-3.0.patch Patch0109: 0109-feat-debian.conf-add-i18n_vars-for-Debian-Ubuntu.patch Patch0110: 0110-improvement-74nvmf-lookup-required-NIC-kernel-module.patch Patch0111: 0111-fix-dracut-library-directory-creation-in-kernel-only.patch Patch0112: 0112-fix-place-dracut-generated-cmdline-conf-files-in-the.patch Patch0113: 0113-chore-deps-bump-actions-setup-node-from-4-to-5.patch Patch0114: 0114-ci-do-not-force-no-hostonly-cmdline-during-testing.patch Patch0115: 0115-fix-74nvmf-only-set-netroot-if-it-s-yet-empty.patch Patch0116: 0116-fix-74nvmf-make-sure-autoconnect-script-is-run-at-le.patch Patch0117: 0117-fix-fs-lib-include-modules-for-charsets-for-working-.patch Patch0118: 0118-feat-Makefile-filter-out-s390-specific-dracut-module.patch Patch0119: 0119-feat-fedora-switch-to-strict-hostonly-mode-by-defaul.patch Patch0120: 0120-fix-fedora-always-include-chroot-binary.patch Patch0121: 0121-fix-dracut-enforce-that-hostonly-is-set-for-hostonly.patch Patch0122: 0122-chore-rootfs-block-usrmount-align-systemd-and-non-sy.patch Patch0123: 0123-ci-integration-extra-disable-UEFI-test-on-debian-sid.patch Patch0124: 0124-ci-openSUSE-revert-cce3ba8.patch Patch0125: 0125-fix-overlayfs-overlayfs-should-not-use-rootfsflags-a.patch Patch0126: 0126-ci-add-test-coverage-for-omitting-systemd-on-a-syste.patch Patch0127: 0127-ci-alpine-enable-arm64.patch Patch0128: 0128-ci-pr-run-job-only-on-pull_request-main-branch.patch Patch0129: 0129-ci-add-more-drivers-to-pass-CI-in-strict-hostonly-mo.patch Patch0130: 0130-ci-simplify-test-cases.patch Patch0131: 0131-fix-test-makeroot-make-it-dependent-on-initqueue.patch Patch0132: 0132-ci-enable-controlling-TEST_FSTYPE-as-part-of-contain.patch Patch0133: 0133-ci-add-more-daily-networking-test.patch Patch0134: 0134-ci-only-add-qemu-net-dracut-module-to-networked-test.patch Patch0135: 0135-test-NFS-do-not-use-rd.net.timeout.dhcp.patch Patch0136: 0136-ci-remove-dhclient-from-Arch-Debian-Fedora-CI.patch Patch0137: 0137-ci-allow-porting-to-dnsmasq-from-isc-dhcp-server.patch Patch0138: 0138-test-NFS-enable-tests-when-dhclient-is-not-available.patch Patch0139: 0139-ci-make-sure-job-group-names-are-unique.patch Patch0140: 0140-ci-debian-make-sure-ip-command-is-available.patch Patch0141: 0141-ci-daily-include-tests-13-in-the-daily-test-suite.patch Patch0142: 0142-ci-un-exclude-test-30-for-ubuntu-devel.patch Patch0143: 0143-fix-doc-correct-spelling-mistake-of-recommended.patch Patch0144: 0144-fix-dracut-add-support-for-kernel-name-Image.patch Patch0145: 0145-feat-qemu-install-sd_mod-driver.patch Patch0146: 0146-ci-opensuse-remove-workaround-for-a-sym-link.patch Patch0147: 0147-ci-test-root-ext4-driver-for-test-root-is-coming-fro.patch Patch0148: 0148-fix-dracut.sh-check-that-custom-fw-search-patch-exis.patch Patch0149: 0149-fix-virtfs-virtiofs-dracut-module-should-not-delete-.patch Patch0150: 0150-fix-partial-revert-for-hostonly-sloppy-mode.patch Patch0151: 0151-revert-fedora-switch-to-strict-hostonly-mode-by-defa.patch Patch0152: 0152-chore-fedora-simplify-Fedora-configuration.patch Patch0153: 0153-fix-systemd-add-compatibility-with-systemd-v258.patch Patch0154: 0154-ci-add-daily-test-coverage-for-hostonly-mode-strict.patch Patch0155: 0155-fix-lsinitrd-use-lowercase-skip-variable-name.patch Patch0156: 0156-test-NFS-include-pidof-command-in-server-root-fs.patch Patch0157: 0157-fix-dracut-init-remove-obsolete-comment.patch Patch0158: 0158-ci-exclude-test-41-on-arch-due-to-systemd-v258-regre.patch Patch0159: 0159-ci-debian-revert-Debian-workarounds.patch Patch0160: 0160-ci-debian-install-packages-recommended-by-packaging.patch Patch0161: 0161-test-USR-MOUNT-add-a-test-step-to-mount-read-only-bt.patch Patch0162: 0162-ci-debian-move-workaround-to-the-test-case.patch Patch0163: 0163-docs-define-hostonly_mode-strict-with-more-detail.patch Patch0164: 0164-fix-systemd-make-dbus-optional-dependency.patch Patch0165: 0165-feat-dracut-print-the-computed-configuration-and-exi.patch Patch0166: 0166-test-KERNEL-INSTALL-remove-checking-for-systemd-vers.patch Patch0167: 0167-test-UEFI-change-the-order-of-execution-to-fix-regre.patch Patch0168: 0168-test-FULL-SYSTEMD-remove-dbus-dependency.patch Patch0169: 0169-test-FULL-SYSTEMD-remove-obsolete-and-incorrect-chec.patch Patch0170: 0170-fix-cpio-unit-test-regression-from-GNU-cpio-changes.patch Patch0171: 0171-fix-cpio-use-mutex-to-avoid-multi-threaded-failures.patch Patch0172: 0172-test-avoid-kernel-install-add-all.patch Patch0173: 0173-fix-Makefile-exclude-hidden-directories-from-shellch.patch Patch0174: 0174-feat-debian.conf-default-to-initrd.img-kernel-on-Deb.patch Patch0175: 0175-fix-test-functions-use-absolute-path.patch Patch0176: 0176-fix-debian-no-need-to-change-permissions.patch Patch0177: 0177-test-SYSTEMD-INITRD-lock-down-this-test-to-boot-with.patch Patch0178: 0178-test-SKIPCPIO-introduce-cpio_list_first-function.patch Patch0179: 0179-test-SKIPCPIO-introduce-cpio_create-function.patch Patch0180: 0180-test-SKIPCPIO-support-3cpio.patch Patch0181: 0181-fix-nvmf-do-not-install-hostonly-configuration-in-ge.patch Patch0182: 0182-fix-dbus-network-manager-make-generic-mode-host-inde.patch Patch0183: 0183-fix-iscsi-do-not-include-etc-iscsi-iscsid.conf-in-ge.patch Patch0184: 0184-feat-lsinitrd-support-3cpio.patch Patch0185: 0185-feat-dracut-support-3cpio-for-creating-initrds.patch Patch0186: 0186-ci-only-pass-TEST_FSTYPE-to-the-CI-container-if-it-i.patch Patch0187: 0187-test-SKIPCPIO-check-3cpio-for-supported-features.patch Patch0188: 0188-test-DMSQUASH-add-coverage-for-more-dracut-modules-i.patch Patch0189: 0189-ci-allow-the-execution-of-arbitrary-commands-within-.patch Patch0190: 0190-ci-debian-install-iscsiuio-package-into-the-test-CI.patch Patch0191: 0191-ci-debian-add-bsdextrautils-package-for-rev.patch Patch0192: 0192-fix-network-handle-network-selection-properly.patch Patch0193: 0193-chore-doc-fix-syntax.patch Patch0194: 0194-ci-debian-add-util-linux-extra-package-for-wdctl.patch Patch0195: 0195-ci-update-failing-tests-exclude-list-for-Daily-tests.patch Patch0196: 0196-chore-dracut-enforce-that-etc-is-only-used-in-hoston.patch Patch0197: 0197-test-allow-running-UEFI-and-kernel-install-tests-in-.patch Patch0198: 0198-test-NFS-drop-including-missing-overlay-in-server-in.patch Patch0199: 0199-test-fix-MACAddressPolicy-from-keep-to-none.patch Patch0200: 0200-fix-plymouth-drop-depending-on-bash.patch Patch0201: 0201-feat-dracut-support-setting-compression-level-separa.patch Patch0202: 0202-fix-plymouth-check-all-library-directories-for-Plymo.patch Patch0203: 0203-feat-plymouth-use-simpledrm-if-Plymouth-is-configure.patch Patch0204: 0204-fix-plymouth-do-not-install-plymouth-set-default-the.patch Patch0205: 0205-feat-dracut-add-support-for-run-initramfs-dracut.con.patch Patch0206: 0206-fix-dracut-rescue-add-support-for-run-initramfs-drac.patch Patch0207: 0207-fix-systemd-sysusers-spelling-of-after.patch # Mageia Patches # D=050; git rebase $D; git format-patch --start-number 0500 $D; Patch0501: 0501-Plymouth-customisations-for-Mageia.patch Patch0502: 0502-Use-the-Mageia-naming-for-initrd-files.patch Patch0503: 0503-Handle-upgrades-better.patch Patch0504: 0504-network-Include-70-persistent-net.rules-in-the-netwo.patch Patch0505: 0505-lvm-Ensure-LVM-is-initialised-in-non-hostonly-mode.patch Patch0506: 0506-rootfs-block-Support-lilo-style-device-numbers.patch Patch0507: 0507-i18n-Run-console_init-prior-to-udev-startup.patch Patch0508: 0508-mageia-Add-a-convertfs-hacks-for-packaging-quirks.patch Patch0509: 0509-dracut-init.sh-Make-sure-to-install-full-path-PROGRA.patch Patch0510: 0510-Support-the-simple-upgrade-preparation-API-mga-9744.patch Patch0512: 0512-mgainstaller-Add-a-module-used-to-generate-the-Magei.patch # reported upstream: https://github.com/dracutdevs/dracut/issues/483 Patch0516: 0516-dracut-046-shutdown-fix-early-exit-in-umount-loop.patch # reported upstream: https://github.com/dracutdevs/dracut/issues/481 Patch0517: 0517-Fix-the-pivot-back-to-the-initramfs-on-system-shutdo.patch # fix mga#26726 Patch0518: 0518-Revert-Use-udev-rules-to-create-dmraid-dev-mapper-de.patch # fix mga#28528. This is a reworked version of upstream PR #2160, which doesn't # actually fix the bug (see my comments there). The buggy PR has been merged, so # if it hasn't been fixed before dracut-058 is released, this patch will need to # be rebased, not dropped. #Patch0520: 0520-also-consider-resume-in-cmdline-as-enabling-hibernation.patch Patch0600: fix-drakx-with-busybox.patch Patch0601: fix-hostonly-yes.patch # Fedora patches Patch0801: 0001-revert-fix-install.d-correctly-install-pre-genned-im.patch Patch0802: 0002-feat-kernel-install-do-nothing-when-KERNEL_INSTALL_I.patch Patch0803: 0003-fix-kernel-install-do-not-generate-an-initrd-when-on.patch Patch0805: 0005-fix-dracut-install-initize-fts-pointer.patch # Debian patches Patch0900: udevsettle.patch Requires(pre): filesystem Requires: udev Requires: util-linux Requires: e2fsprogs Requires: cpio Requires: coreutils Requires: findutils Requires: grep Requires: mktemp Requires: bash Requires: dash Requires: kbd Requires: tar Requires: gzip Requires: bzip2 Requires: file Requires: kmod Requires: bridge-utils Requires: initscripts Recommends: plymouth Requires: bootloader-utils Requires(post): rpm-helper >= 0.24.8-1 Requires(preun): rpm-helper >= 0.24.8-1 # (cg) Replace mkinitrd and nuke all it's sub-packages Provides: mkinitrd = 6.0.93-32 Obsoletes: mkinitrd < 6.0.93-32 BuildRequires: cargo BuildRequires: cpio BuildRequires: git-core BuildRequires: kmod-devel >= 23 BuildRequires: systemd-devel BuildRequires: bash-completion BuildRequires: pkgconfig %if %{with doc} BuildRequires: asciidoctor BuildRequires: asciidoc BuildRequires: docbook-dtd45-xml BuildRequires: docbook-style-xsl BuildRequires: xsltproc %endif BuildRequires: dash BuildRequires: bash BuildRequires: git %description dracut contains tools to create bootable initramfses for the Linux kernel. Unlike other implementations, dracut hard-codes as little as possible into the initramfs. dracut contains various modules which are driven by the event-based udev. Having root on MD, DM, LVM2, LUKS is supported as well as NFS, iSCSI, NBD, FCoE. %prep %autosetup -n dracut-ng-%{version} -a2 -p1 -S git # copy Mageia configs cp -ar mageia-dracut-conf-%{mgaconfigver}/* ./ # (cg) We don't want backup file find -name '*.orig' -delete %build %configure --systemdsystemunitdir=%{_unitdir} \ --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion) \ --libdir=%{_prefix}/lib \ --enable-dracut-cpio \ %if %{without doc} --disable-documentation \ %endif ${NULL} %make_build %install %make_install \ sbindir=/sbin \ sysconfdir=%{_sysconfdir} \ systemdsystemunitdir=%{_unitdir} \ mandir=%{_mandir} %ifnarch s390 s390x # remove architecture specific modules rm -fr -- %{buildroot}/%{dracutlibdir}/modules.d/68cms rm -fr -- %{buildroot}/%{dracutlibdir}/modules.d/69cio_ignore rm -fr -- %{buildroot}/%{dracutlibdir}/modules.d/73zipl rm -fr -- %{buildroot}/%{dracutlibdir}/modules.d/74dasd rm -fr -- %{buildroot}/%{dracutlibdir}/modules.d/74dasd_mod rm -fr -- %{buildroot}/%{dracutlibdir}/modules.d/74dcssblk rm -fr -- %{buildroot}/%{dracutlibdir}/modules.d/74zfcp rm -fr -- %{buildroot}/%{dracutlibdir}/modules.d/74znet %else rm -fr -- %{buildroot}/%{dracutlibdir}/modules.d/10warpclock %endif install -m 644 dracut.conf.d/50-%{_real_vendor}.conf %{buildroot}%{_sysconfdir}/dracut.conf.d install -m 755 -d %{buildroot}%{_datadir}/dracut install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/dracut/logo.png install -m 755 -d %{buildroot}%{_prefix}/lib/systemd/system-shutdown # bluca remove patch backup files find %{buildroot} -name \*.\*.orig -exec rm {} \; # fix permission of module files chmod +x %{buildroot}%{dracutlibdir}/modules.d/*/*.sh mkdir -p %{buildroot}/boot/dracut mkdir -p %{buildroot}%{_var}/lib/dracut/overlay # (cg) For now provide compatibility symlinks in %_sbindir as this was the old # location for mkinitrd and some tools may hard-code the path mkdir -p %{buildroot}%{_sbindir} ln -sf dracut %{buildroot}%{_bindir}/mkinitrd ln -sf %{_bindir}/mkinitrd %{buildroot}%{_sbindir}/mkinitrd ln -sf dracut.8%{_extension} %{buildroot}%{_mandir}/man8/mkinitrd.8%{_extension} %files %doc README.md AUTHORS NEWS.md %dir /boot/dracut %dir %{_datadir}/dracut %dir %{_var}/lib/dracut %dir %{_var}/lib/dracut/overlay %dir %{dracutlibdir} %config(noreplace) %{_sysconfdir}/dracut.conf %{_datadir}/pkgconfig/dracut.pc %dir %{_sysconfdir}/dracut.conf.d %ghost %attr(644,root,root) %config(noreplace) %{_sysconfdir}/dracut.conf.d/51-mageia-resume.conf %{_sysconfdir}/dracut.conf.d/50-%{_real_vendor}.conf %{_bindir}/dracut %{_bindir}/dracut-catimages %{_bindir}/lsinitrd %{_bindir}/mkinitrd %{_sbindir}/mkinitrd %dir %{dracutlibdir}/dracut.conf.d/ %dir %{dracutlibdir}/dracut.conf.d/*/ %{dracutlibdir}/dracut.conf.d/*.conf %{dracutlibdir}/dracut.conf.d/*/*.conf %{dracutlibdir}/dracut-functions.sh %{dracutlibdir}/dracut-init.sh %{dracutlibdir}/dracut-functions %{dracutlibdir}/dracut-initramfs-restore %{dracutlibdir}/dracut-install %{dracutlibdir}/dracut-util %{dracutlibdir}/dracut-version.sh %{dracutlibdir}/modules.d %{dracutlibdir}/dracut-logger.sh %{dracutlibdir}/skipcpio %{dracutlibdir}/dracut-cpio %{_prefix}/lib/kernel/install.d/50-dracut.install %{_prefix}/lib/kernel/install.d/51-dracut-rescue.install %{_unitdir}/*.service %{_unitdir}/*/*.service %{_datadir}/bash-completion/completions/dracut %{_datadir}/bash-completion/completions/lsinitrd %{_datadir}/dracut/logo.png %if %{with doc} %{_mandir}/man1/lsinitrd*.1* %{_mandir}/man8/dracut*.8* %{_mandir}/man8/mkinitrd*.8* %{_mandir}/man7/dracut.bootup.7* %{_mandir}/man7/dracut.cmdline.7* %{_mandir}/man7/dracut.kernel.7* %{_mandir}/man7/dracut.modules.7* %{_mandir}/man5/dracut.conf.5* %endif