2019-12-25 15:44:58 +08:00
|
|
|
# This spec obtain from source code(dracut-049.tar.gz)
|
2019-09-30 10:37:34 -04:00
|
|
|
%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 pkg-config
|
|
|
|
|
|
|
|
|
|
Name: dracut
|
2021-07-23 16:35:57 +08:00
|
|
|
Version: 055
|
2021-08-11 19:49:06 +08:00
|
|
|
Release: 2
|
2019-09-30 10:37:34 -04:00
|
|
|
|
|
|
|
|
Summary: Initramfs generator using udev
|
|
|
|
|
|
|
|
|
|
# The entire source code is GPLv2+
|
|
|
|
|
# except install/* which is LGPLv2+
|
|
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
|
|
|
|
|
|
URL: https://dracut.wiki.kernel.org/
|
|
|
|
|
|
|
|
|
|
# Source can be generated by
|
|
|
|
|
# http://git.kernel.org/?p=boot/dracut/dracut.git;a=snapshot;h=%%{version};sf=tgz
|
2020-07-23 18:51:19 +08:00
|
|
|
Source0: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut-%{version}.tar.xz
|
|
|
|
|
#Source0: https://git.kernel.org/pub/scm/boot/dracut/dracut.git/snapshot/dracut-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch1: dracut-network-fixed-net-rules-issue-hence-systemd-r.patch
|
|
|
|
|
Patch2: skip-the-broken-sd-in-initqueue.patch
|
|
|
|
|
Patch3: use-sleep-replace-check-sys-block.patch
|
2021-07-23 16:35:57 +08:00
|
|
|
Patch4: add-option-to-include-file-metadata-in-initramfs.patch
|
2019-12-25 15:44:58 +08:00
|
|
|
|
2019-09-30 10:37:34 -04:00
|
|
|
Source1: https://www.gnu.org/licenses/lgpl-2.1.txt
|
|
|
|
|
Source2: openEuler.conf.example
|
|
|
|
|
|
2021-07-22 09:57:08 +08:00
|
|
|
BuildRequires: bash
|
2019-09-30 10:37:34 -04:00
|
|
|
BuildRequires: kmod-devel >= 23
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel}
|
2019-09-30 10:37:34 -04:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with doc}
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel}
|
2019-09-30 10:37:34 -04:00
|
|
|
BuildRequires: docbook-style-xsl docbook-dtds libxslt
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
BuildRequires: docbook-xsl-stylesheets libxslt
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: asciidoc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Obsoletes: dracut-fips <= 047
|
|
|
|
|
Provides: dracut-fips = %{version}-%{release}
|
|
|
|
|
Obsoletes: dracut-fips-aesni <= 047
|
|
|
|
|
Provides: dracut-fips-aesni = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Requires: bash >= 4
|
|
|
|
|
Requires: coreutils
|
|
|
|
|
Requires: cpio
|
|
|
|
|
Requires: filesystem >= 2.1.0
|
|
|
|
|
Requires: findutils
|
|
|
|
|
Requires: grep
|
|
|
|
|
Requires: kmod
|
|
|
|
|
Requires: sed
|
|
|
|
|
Requires: xz
|
|
|
|
|
Requires: gzip
|
|
|
|
|
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel}
|
2019-09-30 10:37:34 -04:00
|
|
|
Recommends: hardlink
|
|
|
|
|
Recommends: pigz
|
|
|
|
|
Recommends: kpartx
|
|
|
|
|
Requires: util-linux >= 2.21
|
|
|
|
|
Requires: systemd >= 219
|
|
|
|
|
Requires: systemd-udev >= 219
|
|
|
|
|
Requires: procps-ng
|
|
|
|
|
%else
|
|
|
|
|
Requires: hardlink
|
|
|
|
|
Requires: gzip
|
|
|
|
|
Requires: kpartx
|
|
|
|
|
Requires: udev > 166
|
|
|
|
|
Requires: util-linux >= 2.21
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
|
2019-09-30 10:37:34 -04:00
|
|
|
Requires: libkcapi-hmaccalc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
dracut contains tools to create bootable initramfses for the Linux
|
|
|
|
|
kernel. Unlike previous 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 with the dracut-network
|
|
|
|
|
package.
|
|
|
|
|
|
|
|
|
|
%package network
|
|
|
|
|
Summary: dracut modules to build a dracut initramfs with network support
|
|
|
|
|
%if 0%{?_module_build}
|
|
|
|
|
# In the module-build-service, we have pieces of dracut provided by different
|
|
|
|
|
# modules ("base-runtime" provides most functionality, but we need
|
|
|
|
|
# dracut-network in "installer". Since these two modules build with separate
|
|
|
|
|
# dist-tags, we need to reduce this strict requirement to ignore the dist-tag.
|
|
|
|
|
Requires: %{name} >= %{version}-%{dist_free_release}
|
|
|
|
|
%else
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
%endif
|
|
|
|
|
Requires: iputils
|
|
|
|
|
Requires: iproute
|
|
|
|
|
Requires: dhcp
|
|
|
|
|
Obsoletes: dracut-generic < 008
|
|
|
|
|
Provides: dracut-generic = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description network
|
|
|
|
|
This package requires everything which is needed to build a generic
|
|
|
|
|
all purpose initramfs with network support with dracut.
|
|
|
|
|
|
|
|
|
|
%package caps
|
|
|
|
|
Summary: dracut modules to build a dracut initramfs which drops capabilities
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: libcap
|
|
|
|
|
|
|
|
|
|
%description caps
|
|
|
|
|
This package requires everything which is needed to build an
|
|
|
|
|
initramfs with dracut, which drops capabilities.
|
|
|
|
|
|
|
|
|
|
%package live
|
|
|
|
|
Summary: dracut modules to build a dracut initramfs with live image capabilities
|
|
|
|
|
%if 0%{?_module_build}
|
|
|
|
|
# See the network subpackage comment.
|
|
|
|
|
Requires: %{name} >= %{version}-%{dist_free_release}
|
|
|
|
|
%else
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
%endif
|
|
|
|
|
Requires: %{name}-network = %{version}-%{release}
|
|
|
|
|
Requires: tar gzip coreutils bash device-mapper curl
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
Requires: fuse ntfs-3g
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description live
|
|
|
|
|
This package requires everything which is needed to build an
|
|
|
|
|
initramfs with dracut, with live image capabilities, like Live CDs.
|
|
|
|
|
|
|
|
|
|
%package config-generic
|
|
|
|
|
Summary: dracut configuration to turn off hostonly image generation
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Obsoletes: dracut-nohostonly < 030
|
|
|
|
|
Provides: dracut-nohostonly = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description config-generic
|
|
|
|
|
This package provides the configuration to turn off the host specific initramfs
|
|
|
|
|
generation with dracut and generates a generic image by default.
|
|
|
|
|
|
|
|
|
|
%package config-rescue
|
|
|
|
|
Summary: dracut configuration to turn on rescue image generation
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Obsoletes: dracut < 030
|
|
|
|
|
|
|
|
|
|
%description config-rescue
|
|
|
|
|
This package provides the configuration to turn on the rescue initramfs
|
|
|
|
|
generation with dracut.
|
|
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
|
Summary: dracut tools to build the local initramfs
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
|
This package contains tools to assemble the local initrd and host configuration.
|
|
|
|
|
|
|
|
|
|
%package squash
|
|
|
|
|
Summary: dracut module to build an initramfs with most files in a squashfs image
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2020-02-24 16:11:27 +08:00
|
|
|
Requires: squashfs-tools
|
2019-09-30 10:37:34 -04:00
|
|
|
|
|
|
|
|
%description squash
|
|
|
|
|
This package provides a dracut module to build an initramfs, but store most files
|
|
|
|
|
in a squashfs image, result in a smaller initramfs size and reduce runtime memory
|
|
|
|
|
usage.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-08-11 19:49:06 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 10:37:34 -04:00
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
cp %{SOURCE2} %_builddir/dracut-%{version}/dracut.conf.d/
|
|
|
|
|
%build
|
|
|
|
|
%configure --systemdsystemunitdir=%{_unitdir} \
|
|
|
|
|
--bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion) \
|
|
|
|
|
--libdir=%{_prefix}/lib \
|
|
|
|
|
%if %{without doc}
|
|
|
|
|
--disable-documentation \
|
|
|
|
|
%endif
|
|
|
|
|
${NULL}
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
sed -i 's/=\"idm[0-9]\{5,32\}\"/=\"idm123456789123456\"/g' dracut.html
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make %{?_smp_mflags} install \
|
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
|
libdir=%{_prefix}/lib
|
|
|
|
|
|
|
|
|
|
echo "DRACUT_VERSION=%{version}-%{release}" > $RPM_BUILD_ROOT/%{dracutlibdir}/dracut-version.sh
|
|
|
|
|
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} == 0 && 0%{?fedora} == 0 && 0%{?rhel} == 0 && 0%{?suse_version} == 0
|
2019-09-30 10:37:34 -04:00
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/01fips
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{defined _unitdir}
|
|
|
|
|
# for systemd, better use systemd-bootchart
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00bootchart
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# we do not support dash in the initramfs
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00dash
|
|
|
|
|
|
2021-07-23 16:35:57 +08:00
|
|
|
# we do not support mksh in the initramfs
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00mksh
|
|
|
|
|
|
2019-09-30 10:37:34 -04:00
|
|
|
# remove gentoo specific modules
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/50gensplash
|
|
|
|
|
|
|
|
|
|
%if %{defined _unitdir}
|
|
|
|
|
# with systemd IMA and selinux modules do not make sense
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/96securityfs
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/97masterkey
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/98integrity
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ifnarch s390 s390x
|
|
|
|
|
# remove architecture specific modules
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/80cms
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/81cio_ignore
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/91zipl
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/95dasd
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/95dasd_mod
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/95dasd_rules
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/95dcssblk
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/95qeth_rules
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/95zfcp
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/95zfcp_rules
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/95znet
|
|
|
|
|
%else
|
|
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00warpclock
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/boot/dracut
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/dracut/overlay
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log
|
|
|
|
|
touch $RPM_BUILD_ROOT%{_localstatedir}/log/dracut.log
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/initramfs
|
|
|
|
|
|
|
|
|
|
install -m 0644 dracut.conf.d/openEuler.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/99-initramfs.conf
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel}
|
2019-09-30 10:37:34 -04:00
|
|
|
install -m 0644 dracut.conf.d/fedora.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/01-dist.conf
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man?/*suse*
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
install -m 0644 dracut.conf.d/suse.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/01-dist.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} == 0 && 0%{?fedora} == 0 && 0%{?rhel} == 0 && 0%{?suse_version} <= 9999
|
2019-09-30 10:37:34 -04:00
|
|
|
rm -f -- $RPM_BUILD_ROOT%{_bindir}/lsinitrd
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel}
|
2019-09-30 10:37:34 -04:00
|
|
|
echo 'hostonly="no"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-generic-image.conf
|
|
|
|
|
echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/02-rescue.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%if %{with doc}
|
2021-07-23 16:35:57 +08:00
|
|
|
%doc README.md AUTHORS
|
2019-09-30 10:37:34 -04:00
|
|
|
%endif
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license COPYING lgpl-2.1.txt
|
|
|
|
|
%{_bindir}/dracut
|
|
|
|
|
%{_datadir}/bash-completion/completions/dracut
|
|
|
|
|
%{_datadir}/bash-completion/completions/lsinitrd
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} > 9999
|
2019-09-30 10:37:34 -04:00
|
|
|
%{_bindir}/lsinitrd
|
|
|
|
|
%endif
|
|
|
|
|
%dir %{dracutlibdir}
|
|
|
|
|
%dir %{dracutlibdir}/modules.d
|
|
|
|
|
%{dracutlibdir}/dracut-functions.sh
|
|
|
|
|
%{dracutlibdir}/dracut-init.sh
|
|
|
|
|
%{dracutlibdir}/dracut-functions
|
|
|
|
|
%{dracutlibdir}/dracut-version.sh
|
|
|
|
|
%{dracutlibdir}/dracut-logger.sh
|
|
|
|
|
%{dracutlibdir}/dracut-initramfs-restore
|
|
|
|
|
%{dracutlibdir}/dracut-install
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/dracut-util
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/skipcpio
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/dracut.conf
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/dracut.conf.d/01-dist.conf
|
|
|
|
|
%endif
|
|
|
|
|
%{dracutlibdir}/dracut.conf.d/99-initramfs.conf
|
|
|
|
|
%dir %{_sysconfdir}/dracut.conf.d
|
|
|
|
|
%dir %{dracutlibdir}/dracut.conf.d
|
|
|
|
|
%dir %{_datadir}/pkgconfig
|
|
|
|
|
%{_datadir}/pkgconfig/dracut.pc
|
|
|
|
|
|
|
|
|
|
%if %{with doc}
|
|
|
|
|
%{_mandir}/man8/dracut.8*
|
|
|
|
|
%{_mandir}/man8/*service.8*
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} > 9999
|
2019-09-30 10:37:34 -04:00
|
|
|
%{_mandir}/man1/lsinitrd.1*
|
|
|
|
|
%endif
|
|
|
|
|
%{_mandir}/man7/dracut.kernel.7*
|
|
|
|
|
%{_mandir}/man7/dracut.cmdline.7*
|
|
|
|
|
%{_mandir}/man7/dracut.modules.7*
|
|
|
|
|
%{_mandir}/man7/dracut.bootup.7*
|
|
|
|
|
%{_mandir}/man5/dracut.conf.5*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{undefined _unitdir}
|
|
|
|
|
%{dracutlibdir}/modules.d/00bootchart
|
|
|
|
|
%endif
|
|
|
|
|
%{dracutlibdir}/modules.d/00bash
|
|
|
|
|
%{dracutlibdir}/modules.d/00systemd
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/00systemd-network-management
|
2019-09-30 10:37:34 -04:00
|
|
|
%ifnarch s390 s390x
|
|
|
|
|
%{dracutlibdir}/modules.d/00warpclock
|
|
|
|
|
%endif
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/01fips
|
|
|
|
|
%endif
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/01systemd-ac-power
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-ask-password
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-coredump
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-hostnamed
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/01systemd-initrd
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/01systemd-journald
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-ldconfig
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-modules-load
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-repart
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-resolved
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-rfkill
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-sysext
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-sysctl
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-sysusers
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-timedated
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-timesyncd
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-tmpfiles
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-udevd
|
|
|
|
|
%{dracutlibdir}/modules.d/01systemd-veritysetup
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/03modsign
|
|
|
|
|
%{dracutlibdir}/modules.d/03rescue
|
|
|
|
|
%{dracutlibdir}/modules.d/04watchdog
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/04watchdog-modules
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/05busybox
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/06dbus-broker
|
|
|
|
|
%{dracutlibdir}/modules.d/06dbus-daemon
|
2020-07-23 18:51:19 +08:00
|
|
|
%{dracutlibdir}/modules.d/06rngd
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/09dbus
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/10i18n
|
|
|
|
|
%{dracutlibdir}/modules.d/30convertfs
|
|
|
|
|
%{dracutlibdir}/modules.d/45url-lib
|
|
|
|
|
%{dracutlibdir}/modules.d/50drm
|
|
|
|
|
%{dracutlibdir}/modules.d/50plymouth
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/62bluetooth
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/80lvmmerge
|
|
|
|
|
%{dracutlibdir}/modules.d/90btrfs
|
|
|
|
|
%{dracutlibdir}/modules.d/90crypt
|
|
|
|
|
%{dracutlibdir}/modules.d/90dm
|
|
|
|
|
%{dracutlibdir}/modules.d/90dmraid
|
|
|
|
|
%{dracutlibdir}/modules.d/90kernel-modules
|
|
|
|
|
%{dracutlibdir}/modules.d/90kernel-modules-extra
|
|
|
|
|
%{dracutlibdir}/modules.d/90lvm
|
|
|
|
|
%{dracutlibdir}/modules.d/90mdraid
|
|
|
|
|
%{dracutlibdir}/modules.d/90multipath
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/90nvdimm
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/90qemu
|
2020-07-23 18:51:19 +08:00
|
|
|
%{dracutlibdir}/modules.d/90ppcmac
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/91crypt-gpg
|
|
|
|
|
%{dracutlibdir}/modules.d/91crypt-loop
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/91tpm2-tss
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/95debug
|
|
|
|
|
%{dracutlibdir}/modules.d/95fstab-sys
|
|
|
|
|
%{dracutlibdir}/modules.d/95lunmask
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/95nvmf
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/95resume
|
|
|
|
|
%{dracutlibdir}/modules.d/95rootfs-block
|
|
|
|
|
%{dracutlibdir}/modules.d/95terminfo
|
|
|
|
|
%{dracutlibdir}/modules.d/95udev-rules
|
|
|
|
|
%{dracutlibdir}/modules.d/95virtfs
|
|
|
|
|
%ifarch s390 s390x
|
|
|
|
|
%{dracutlibdir}/modules.d/80cms
|
|
|
|
|
%{dracutlibdir}/modules.d/81cio_ignore
|
|
|
|
|
%{dracutlibdir}/modules.d/91zipl
|
|
|
|
|
%{dracutlibdir}/modules.d/95dasd
|
|
|
|
|
%{dracutlibdir}/modules.d/95dasd_mod
|
|
|
|
|
%{dracutlibdir}/modules.d/95dasd_rules
|
|
|
|
|
%{dracutlibdir}/modules.d/95dcssblk
|
|
|
|
|
%{dracutlibdir}/modules.d/95qeth_rules
|
|
|
|
|
%{dracutlibdir}/modules.d/95zfcp
|
|
|
|
|
%{dracutlibdir}/modules.d/95zfcp_rules
|
|
|
|
|
%endif
|
|
|
|
|
%if %{undefined _unitdir}
|
|
|
|
|
%{dracutlibdir}/modules.d/96securityfs
|
|
|
|
|
%{dracutlibdir}/modules.d/97masterkey
|
|
|
|
|
%{dracutlibdir}/modules.d/98integrity
|
|
|
|
|
%endif
|
|
|
|
|
%{dracutlibdir}/modules.d/97biosdevname
|
|
|
|
|
%{dracutlibdir}/modules.d/98dracut-systemd
|
|
|
|
|
%{dracutlibdir}/modules.d/98ecryptfs
|
|
|
|
|
%{dracutlibdir}/modules.d/98pollcdrom
|
|
|
|
|
%{dracutlibdir}/modules.d/98selinux
|
|
|
|
|
%{dracutlibdir}/modules.d/98syslog
|
|
|
|
|
%{dracutlibdir}/modules.d/98usrmount
|
|
|
|
|
%{dracutlibdir}/modules.d/99base
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/99memstrack
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/99fs-lib
|
|
|
|
|
%{dracutlibdir}/modules.d/99shutdown
|
|
|
|
|
%attr(0644,root,root) %ghost %config(missingok,noreplace) %{_localstatedir}/log/dracut.log
|
|
|
|
|
%dir %{_sharedstatedir}/initramfs
|
|
|
|
|
%if %{defined _unitdir}
|
|
|
|
|
%{_unitdir}/dracut-shutdown.service
|
|
|
|
|
%{_unitdir}/sysinit.target.wants/dracut-shutdown.service
|
|
|
|
|
%{_unitdir}/dracut-cmdline.service
|
|
|
|
|
%{_unitdir}/dracut-initqueue.service
|
|
|
|
|
%{_unitdir}/dracut-mount.service
|
|
|
|
|
%{_unitdir}/dracut-pre-mount.service
|
|
|
|
|
%{_unitdir}/dracut-pre-pivot.service
|
|
|
|
|
%{_unitdir}/dracut-pre-trigger.service
|
|
|
|
|
%{_unitdir}/dracut-pre-udev.service
|
|
|
|
|
%{_unitdir}/initrd.target.wants/dracut-cmdline.service
|
|
|
|
|
%{_unitdir}/initrd.target.wants/dracut-initqueue.service
|
|
|
|
|
%{_unitdir}/initrd.target.wants/dracut-mount.service
|
|
|
|
|
%{_unitdir}/initrd.target.wants/dracut-pre-mount.service
|
|
|
|
|
%{_unitdir}/initrd.target.wants/dracut-pre-pivot.service
|
|
|
|
|
%{_unitdir}/initrd.target.wants/dracut-pre-trigger.service
|
|
|
|
|
%{_unitdir}/initrd.target.wants/dracut-pre-udev.service
|
|
|
|
|
|
|
|
|
|
%endif
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel}
|
2019-09-30 10:37:34 -04:00
|
|
|
%{_prefix}/lib/kernel/install.d/50-dracut.install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files network
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/01systemd-networkd
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/35network-manager
|
|
|
|
|
%{dracutlibdir}/modules.d/35network-legacy
|
2021-07-23 16:35:57 +08:00
|
|
|
%{dracutlibdir}/modules.d/35network-wicked
|
2019-09-30 10:37:34 -04:00
|
|
|
%{dracutlibdir}/modules.d/40network
|
|
|
|
|
%{dracutlibdir}/modules.d/45ifcfg
|
|
|
|
|
%{dracutlibdir}/modules.d/90kernel-network-modules
|
|
|
|
|
%{dracutlibdir}/modules.d/90qemu-net
|
|
|
|
|
%{dracutlibdir}/modules.d/95cifs
|
|
|
|
|
%{dracutlibdir}/modules.d/95fcoe
|
|
|
|
|
%{dracutlibdir}/modules.d/95fcoe-uefi
|
|
|
|
|
%{dracutlibdir}/modules.d/95iscsi
|
|
|
|
|
%{dracutlibdir}/modules.d/95nbd
|
|
|
|
|
%{dracutlibdir}/modules.d/95nfs
|
|
|
|
|
%{dracutlibdir}/modules.d/95ssh-client
|
|
|
|
|
%ifarch s390 s390x
|
|
|
|
|
%{dracutlibdir}/modules.d/95znet
|
|
|
|
|
%endif
|
|
|
|
|
%{dracutlibdir}/modules.d/99uefi-lib
|
|
|
|
|
|
|
|
|
|
%files caps
|
|
|
|
|
%{dracutlibdir}/modules.d/02caps
|
|
|
|
|
|
|
|
|
|
%files live
|
|
|
|
|
%{dracutlibdir}/modules.d/99img-lib
|
|
|
|
|
%{dracutlibdir}/modules.d/90dmsquash-live
|
|
|
|
|
%{dracutlibdir}/modules.d/90dmsquash-live-ntfs
|
|
|
|
|
%{dracutlibdir}/modules.d/90livenet
|
|
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
|
%if %{with doc}
|
|
|
|
|
%doc %{_mandir}/man8/dracut-catimages.8*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files squash
|
|
|
|
|
%{dracutlibdir}/modules.d/99squash
|
|
|
|
|
|
|
|
|
|
%{_bindir}/dracut-catimages
|
|
|
|
|
%dir /boot/dracut
|
|
|
|
|
%dir /var/lib/dracut
|
|
|
|
|
%dir /var/lib/dracut/overlay
|
|
|
|
|
|
|
|
|
|
%files config-generic
|
|
|
|
|
%{dracutlibdir}/dracut.conf.d/02-generic-image.conf
|
|
|
|
|
|
|
|
|
|
%files config-rescue
|
|
|
|
|
%{dracutlibdir}/dracut.conf.d/02-rescue.conf
|
2020-03-20 12:08:51 +08:00
|
|
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel}
|
2019-09-30 10:37:34 -04:00
|
|
|
%{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-08-11 19:49:06 +08:00
|
|
|
* Wed Aug 11 2021 chenyanpanHW <chenyanpan@huawei.com> - 055-2
|
|
|
|
|
- DESC: delete -S git_am from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2021-07-23 16:35:57 +08:00
|
|
|
* Fri Aug 6 2021 panxiaohe <panxiaohe@huawei.com> - 055-1
|
|
|
|
|
- Update to 055
|
|
|
|
|
|
2021-07-22 09:57:08 +08:00
|
|
|
* Thu Jul 22 2021 wangchen <wangchen137@huawei.com> - 050-5
|
|
|
|
|
- Delete unnecessary gdb from BuildRequires
|
|
|
|
|
|
2021-05-26 11:28:04 +08:00
|
|
|
* Wed May 26 2021 panxiaohe <panxiaohe@huawei.com> - 050-4
|
|
|
|
|
- [add] backport patches from upstream
|
|
|
|
|
backport-fix-always-use-mkdir-p.patch
|
|
|
|
|
backport-fix-dracut.sh-omission-is-an-addition-to-other-omiss.patch
|
|
|
|
|
|
2020-07-23 18:51:19 +08:00
|
|
|
* Thu Jul 23 2020 Liquor <lirui130@huawei.com> - 050-1
|
|
|
|
|
- Update to 050
|
|
|
|
|
|
2020-07-02 11:35:34 +08:00
|
|
|
* Thu Jul 2 2020 Anakin Zhang <benjamin93@163.com> - 049-9
|
|
|
|
|
- add -e option to include file metadata in initramfs
|
|
|
|
|
|
2020-07-23 18:51:19 +08:00
|
|
|
* Sat Mar 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 049-8
|
2020-03-21 14:11:29 +08:00
|
|
|
- Add buildrequires of gdb
|
|
|
|
|
|
2020-07-23 18:51:19 +08:00
|
|
|
* Fri Mar 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 049-7
|
2020-03-20 12:08:51 +08:00
|
|
|
- Add judgement of openEuler
|
|
|
|
|
|
2020-02-24 16:11:27 +08:00
|
|
|
* Mon Feb 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 049-6
|
|
|
|
|
- Change requires of dracut-squash from squash-tools to squashfs-tools
|
|
|
|
|
|
2019-12-25 15:44:58 +08:00
|
|
|
* Mon Dec 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 049-5
|
|
|
|
|
- Use sleep replace check /sys/block and skip the broken sd in initqueue
|
|
|
|
|
|
2019-09-30 10:37:34 -04:00
|
|
|
* Wed Sep 25 2019 hexiaowen <hexiaowen@huawei.com> - 049-4
|
|
|
|
|
- fix issue when anaconda pxe install for dracut-network
|
|
|
|
|
|
|
|
|
|
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 049-3
|
|
|
|
|
- Adjust requires
|
|
|
|
|
|
|
|
|
|
* Fri Sep 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 049-2
|
|
|
|
|
- Delete redundant information
|
|
|
|
|
|
|
|
|
|
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 049-1
|
|
|
|
|
- Package init
|