|
@@ -1,3 +1,5 @@
|
|
|
+%bcond_with systemd
|
|
|
+
|
|
|
%define dracutlibdir %{_prefix}/lib/dracut
|
|
|
%bcond_without doc
|
|
|
|
|
@@ -9,17 +11,15 @@
|
|
|
# Variables must be defined
|
|
|
%define with_nbd 0
|
|
|
|
|
|
-%define dist_free_release 3
|
|
|
+%define dist_free_release 1
|
|
|
|
|
|
Name: dracut
|
|
|
-Version: 050
|
|
|
-Release: %{dist_free_release}%{?_dist_release}
|
|
|
-
|
|
|
Summary: Initramfs generator using udev
|
|
|
-Group: System Environment/Base
|
|
|
+Version: 053
|
|
|
+Release: %{dist_free_release}%{?_dist_release}%{?with_systemd:.systemd}
|
|
|
+Group: system,admin-tools
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
-Packager: tomop
|
|
|
|
|
|
# The entire source code is GPLv2+
|
|
|
# except install/* which is LGPLv2+
|
|
@@ -28,43 +28,14 @@ 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
|
|
|
Source0: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut-%{version}.tar.xz
|
|
|
-Patch1: 0001.patch
|
|
|
-Patch2: 0002.patch
|
|
|
-Patch3: 0003.patch
|
|
|
-Patch4: 0004.patch
|
|
|
-Patch5: 0005.patch
|
|
|
-Patch6: 0006.patch
|
|
|
-Patch7: 0007.patch
|
|
|
-Patch8: 0008.patch
|
|
|
-Patch9: 0009.patch
|
|
|
-Patch10: 0010.patch
|
|
|
-Patch11: 0011.patch
|
|
|
-Patch12: 0012.patch
|
|
|
-Patch13: 0013.patch
|
|
|
-Patch14: 0014.patch
|
|
|
-Patch15: 0015.patch
|
|
|
-Patch16: 0016.patch
|
|
|
-Patch17: 0017.patch
|
|
|
-Patch18: 0018.patch
|
|
|
-Patch19: 0019.patch
|
|
|
-Patch20: 0020.patch
|
|
|
-Patch21: 0021.patch
|
|
|
-Patch22: 0022.patch
|
|
|
-Patch23: 0023.patch
|
|
|
-Patch24: 0024.patch
|
|
|
-Patch25: 0025.patch
|
|
|
-
|
|
|
-Patch1000: dracut-050-resolve-symlink.patch
|
|
|
-
|
|
|
Source1: https://www.gnu.org/licenses/lgpl-2.1.txt
|
|
|
-
|
|
|
-Source1000: dracut-warpclock.tar.gz
|
|
|
-
|
|
|
Source2000: vine.conf
|
|
|
Source2001: vine-module-setup.sh
|
|
|
Source2002: vine-usb-pre-udev.sh
|
|
|
Source2003: ChangeLog.fedora
|
|
|
|
|
|
+Patch1000: dracut-050-resolve-symlink.patch
|
|
|
+
|
|
|
BuildRequires: bash git
|
|
|
BuildRequires: kmod-devel >= 15
|
|
|
|
|
@@ -81,25 +52,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
%endif
|
|
|
|
|
|
%if %{with doc}
|
|
|
-%if 0%{?fedora} || 0%{?rhel}
|
|
|
BuildRequires: docbook-style-xsl docbook-dtds libxslt
|
|
|
-%endif
|
|
|
-
|
|
|
-%if 0%{?suse_version}
|
|
|
--BuildRequires: docbook-xsl-stylesheets libxslt
|
|
|
-%endif
|
|
|
-
|
|
|
BuildRequires: asciidoc
|
|
|
%endif
|
|
|
|
|
|
-%if 0%{?fedora} > 12 || 0%{?rhel}
|
|
|
# no "provides", because dracut does not offer
|
|
|
# all functionality of the obsoleted packages
|
|
|
Obsoletes: mkinitrd < 6.0.94
|
|
|
Obsoletes: mkinitrd-devel < 6.0.94
|
|
|
Obsoletes: nash < 6.0.94
|
|
|
-Obsoletes: libbdevid-python < 6.0.94
|
|
|
-%endif
|
|
|
|
|
|
%if 0%{?fedora} > 16 || 0%{?rhel} > 6
|
|
|
BuildRequires: systemd-units
|
|
@@ -122,26 +83,12 @@ Requires: kmod
|
|
|
Requires: sed
|
|
|
Requires: xz
|
|
|
Requires: xz-lzma-compat
|
|
|
+Requires: zstd
|
|
|
Requires: gzip
|
|
|
|
|
|
-Recommends: grubby
|
|
|
-Recommends: hardlink
|
|
|
-Recommends: pigz
|
|
|
-Recommends: kpartx
|
|
|
-
|
|
|
-%if 0%{?fedora} || 0%{?rhel} > 6
|
|
|
-Requires: util-linux >= 2.21
|
|
|
-Requires: systemd >= 219
|
|
|
-Requires: systemd-udev >= 219
|
|
|
-Requires: procps-ng
|
|
|
-Conflicts: grubby < 8.23
|
|
|
-Conflicts: initscripts < 8.63-1
|
|
|
-Conflicts: plymouth < 0.8.0-0.2009.29.09.19.1
|
|
|
-Conflicts: bcache-tools < 0-0.14.20130909git
|
|
|
-%else
|
|
|
+Requires: procps
|
|
|
Requires: udev > 166
|
|
|
Requires: util-linux-ng >= 2.21
|
|
|
-%endif
|
|
|
|
|
|
Conflicts: mdadm < 3.2.6-14
|
|
|
|
|
@@ -152,8 +99,10 @@ 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
|
|
|
+Group: system
|
|
|
%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
|
|
@@ -173,9 +122,11 @@ Provides: dracut-generic = %{version}-%{release}
|
|
|
This package requires everything which is needed to build a generic
|
|
|
all purpose initramfs with network support with dracut.
|
|
|
|
|
|
+
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version}
|
|
|
%package fips
|
|
|
Summary: dracut modules to build a dracut initramfs with an integrity check
|
|
|
+Group: system,security
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires: hmaccalc
|
|
|
%if 0%{?rhel} > 5
|
|
@@ -193,14 +144,17 @@ initramfs with dracut, which does an integrity check.
|
|
|
|
|
|
%package fips-aesni
|
|
|
Summary: dracut modules to build a dracut initramfs with an integrity check with aesni-intel
|
|
|
+Group: system,security
|
|
|
Requires: %{name}-fips = %{version}-%{release}
|
|
|
|
|
|
%description fips-aesni
|
|
|
This package requires everything which is needed to build an
|
|
|
initramfs with dracut, which does an integrity check and adds the aesni-intel kernel module.
|
|
|
|
|
|
+
|
|
|
%package caps
|
|
|
Summary: dracut modules to build a dracut initramfs which drops capabilities
|
|
|
+Group: system
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires: libcap
|
|
|
|
|
@@ -208,8 +162,10 @@ Requires: libcap
|
|
|
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
|
|
|
+Group: system
|
|
|
%if 0%{?_module_build}
|
|
|
# See the network subpackage comment.
|
|
|
Requires: %{name} >= %{version}-%{dist_free_release}
|
|
@@ -223,8 +179,10 @@ Requires: tar gzip coreutils bash device-mapper curl
|
|
|
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
|
|
|
+Group: system
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Obsoletes: dracut-nohostonly < 030
|
|
|
Provides: dracut-nohostonly = %{version}-%{release}
|
|
@@ -233,8 +191,10 @@ Provides: dracut-nohostonly = %{version}-%{release}
|
|
|
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
|
|
|
+Group: system
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Obsoletes: dracut < 030
|
|
|
|
|
@@ -242,20 +202,26 @@ Obsoletes: dracut < 030
|
|
|
This package provides the configuration to turn on the rescue initramfs
|
|
|
generation with dracut.
|
|
|
|
|
|
+
|
|
|
%package tools
|
|
|
Summary: dracut tools to build the local initramfs
|
|
|
+Group: admin-tools
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description tools
|
|
|
This package contains tools to assemble the local initrd and host configuration.
|
|
|
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%autosetup -n %{name}-%{version} -S git_am
|
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
-
|
|
|
cp %{SOURCE2003} .
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
%configure \
|
|
|
%if %{defined _unitdir}
|
|
@@ -271,6 +237,7 @@ cp %{SOURCE2003} .
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
rm -rf -- $RPM_BUILD_ROOT
|
|
|
|
|
@@ -285,13 +252,6 @@ rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/01fips
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/02fips-aesni
|
|
|
%endif
|
|
|
|
|
|
-%if %{defined _unitdir}
|
|
|
-# for systemd, better use systemd-bootchart
|
|
|
-rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00bootchart
|
|
|
-%else
|
|
|
-rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00systemd-bootchart
|
|
|
-%endif
|
|
|
-
|
|
|
# we do not support dash in the initramfs
|
|
|
rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00dash
|
|
|
|
|
@@ -320,17 +280,6 @@ install -m 0644 %{SOURCE2000} %{buildroot}%{dracutlibdir}/dracut.conf.d/01-dist.
|
|
|
install -m 0644 dracut.conf.d/fips.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/40-fips.conf
|
|
|
%endif
|
|
|
|
|
|
-%if 0%{?fedora} <= 12 && 0%{?rhel} < 6 && 0%{?suse_version} <= 9999
|
|
|
-rm -f -- $RPM_BUILD_ROOT%{_bindir}/mkinitrd
|
|
|
-rm -f -- $RPM_BUILD_ROOT%{_bindir}/lsinitrd
|
|
|
-rm -f -- $RPM_BUILD_ROOT%{_mandir}/man8/mkinitrd*
|
|
|
-rm -f -- $RPM_BUILD_ROOT%{_mandir}/man1/lsinitrd*
|
|
|
-%endif
|
|
|
-
|
|
|
-# FIXME: remove after F19
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d
|
|
|
-install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh
|
|
|
-
|
|
|
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
|
|
|
|
|
@@ -338,10 +287,6 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/
|
|
|
> $RPM_BUILD_ROOT/etc/system-fips
|
|
|
%endif
|
|
|
|
|
|
-#pushd $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/
|
|
|
-#tar xvf %{SOURCE1000}
|
|
|
-#popd
|
|
|
-
|
|
|
# make to load EHCI driver at first
|
|
|
mkdir -p %{buildroot}%{dracutlibdir}/modules.d/70ehci_first
|
|
|
install -m755 %{SOURCE2001} %{buildroot}%{dracutlibdir}/modules.d/70ehci_first/module-setup.sh
|
|
@@ -351,24 +296,29 @@ install -m755 %{SOURCE2002} %{buildroot}%{dracutlibdir}/modules.d/70ehci_first/u
|
|
|
sed -i -e 's|/usr/sbin/|/sbin/|' \
|
|
|
%{buildroot}%{dracutlibdir}/modules.d/06rngd/rngd.service
|
|
|
|
|
|
+# drop a unshipped file
|
|
|
+rm -f %{buildroot}%{_mandir}/man8/mkinitrd-suse.8*
|
|
|
+
|
|
|
+
|
|
|
%clean
|
|
|
rm -rf -- $RPM_BUILD_ROOT
|
|
|
|
|
|
+
|
|
|
%files
|
|
|
%defattr(-,root,root,0755)
|
|
|
%if %{with doc}
|
|
|
-%doc README* HACKING TODO AUTHORS NEWS dracut.html dracut.png dracut.svg
|
|
|
+%doc README* AUTHORS dracut.html dracut.png dracut.svg
|
|
|
%endif
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
%license COPYING lgpl-2.1.txt
|
|
|
%doc ChangeLog.fedora
|
|
|
%{_bindir}/dracut
|
|
|
+%dir %{_datadir}/bash-completion
|
|
|
+%dir %{_datadir}/bash-completion/completions
|
|
|
%{_datadir}/bash-completion/completions/dracut
|
|
|
%{_datadir}/bash-completion/completions/lsinitrd
|
|
|
-%if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999
|
|
|
%{_bindir}/mkinitrd
|
|
|
%{_bindir}/lsinitrd
|
|
|
-%endif
|
|
|
%dir %{dracutlibdir}
|
|
|
%dir %{dracutlibdir}/modules.d
|
|
|
%{dracutlibdir}/dracut-functions.sh
|
|
@@ -389,10 +339,8 @@ rm -rf -- $RPM_BUILD_ROOT
|
|
|
%if %{with doc}
|
|
|
%{_mandir}/man8/dracut.8*
|
|
|
%{_mandir}/man8/*service.8*
|
|
|
-%if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999
|
|
|
%{_mandir}/man8/mkinitrd.8*
|
|
|
%{_mandir}/man1/lsinitrd.1*
|
|
|
-%endif
|
|
|
%{_mandir}/man7/dracut.kernel.7*
|
|
|
%{_mandir}/man7/dracut.cmdline.7*
|
|
|
%{_mandir}/man7/dracut.modules.7*
|
|
@@ -400,20 +348,25 @@ rm -rf -- $RPM_BUILD_ROOT
|
|
|
%{_mandir}/man5/dracut.conf.5*
|
|
|
%endif
|
|
|
|
|
|
-%if %{defined _unitdir}
|
|
|
-%{dracutlibdir}/modules.d/00systemd-bootchart
|
|
|
-%else
|
|
|
-%{dracutlibdir}/modules.d/00bootchart
|
|
|
-%endif
|
|
|
%{dracutlibdir}/modules.d/00bash
|
|
|
%{dracutlibdir}/modules.d/00systemd
|
|
|
%{dracutlibdir}/modules.d/00warpclock
|
|
|
+%{dracutlibdir}/modules.d/01systemd-ask-password
|
|
|
+%{dracutlibdir}/modules.d/01systemd-coredump
|
|
|
%{dracutlibdir}/modules.d/01systemd-initrd
|
|
|
+%{dracutlibdir}/modules.d/01systemd-modules-load
|
|
|
+%{dracutlibdir}/modules.d/01systemd-repart
|
|
|
+%{dracutlibdir}/modules.d/01systemd-sysctl
|
|
|
+%{dracutlibdir}/modules.d/01systemd-sysusers
|
|
|
%{dracutlibdir}/modules.d/03modsign
|
|
|
%{dracutlibdir}/modules.d/03rescue
|
|
|
%{dracutlibdir}/modules.d/04watchdog
|
|
|
+%{dracutlibdir}/modules.d/04watchdog-modules
|
|
|
%{dracutlibdir}/modules.d/05busybox
|
|
|
+%{dracutlibdir}/modules.d/06dbus-broker
|
|
|
+%{dracutlibdir}/modules.d/06dbus-daemon
|
|
|
%{dracutlibdir}/modules.d/06rngd
|
|
|
+%{dracutlibdir}/modules.d/09dbus
|
|
|
%{dracutlibdir}/modules.d/10i18n
|
|
|
%{dracutlibdir}/modules.d/30convertfs
|
|
|
%{dracutlibdir}/modules.d/45url-lib
|
|
@@ -434,13 +387,13 @@ rm -rf -- $RPM_BUILD_ROOT
|
|
|
%{dracutlibdir}/modules.d/90multipath
|
|
|
%{dracutlibdir}/modules.d/90nvdimm
|
|
|
%{dracutlibdir}/modules.d/90qemu
|
|
|
-%{dracutlibdir}/modules.d/90stratis
|
|
|
%{dracutlibdir}/modules.d/90ppcmac
|
|
|
%{dracutlibdir}/modules.d/91crypt-gpg
|
|
|
%{dracutlibdir}/modules.d/91crypt-loop
|
|
|
%{dracutlibdir}/modules.d/95debug
|
|
|
%{dracutlibdir}/modules.d/95fstab-sys
|
|
|
%{dracutlibdir}/modules.d/95lunmask
|
|
|
+%{dracutlibdir}/modules.d/95nvmf
|
|
|
%{dracutlibdir}/modules.d/95resume
|
|
|
%{dracutlibdir}/modules.d/95rootfs-block
|
|
|
%{dracutlibdir}/modules.d/95terminfo
|
|
@@ -482,6 +435,7 @@ rm -rf -- $RPM_BUILD_ROOT
|
|
|
%{dracutlibdir}/modules.d/98dracut-systemd
|
|
|
%{dracutlibdir}/modules.d/98usrmount
|
|
|
%{dracutlibdir}/modules.d/99base
|
|
|
+%{dracutlibdir}/modules.d/99memstrack
|
|
|
%{dracutlibdir}/modules.d/99fs-lib
|
|
|
%{dracutlibdir}/modules.d/99shutdown
|
|
|
%{dracutlibdir}/modules.d/99squash
|
|
@@ -505,7 +459,6 @@ rm -rf -- $RPM_BUILD_ROOT
|
|
|
%{_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
|
|
|
%{_prefix}/lib/kernel/install.d/50-dracut.install
|
|
|
|
|
@@ -514,6 +467,7 @@ rm -rf -- $RPM_BUILD_ROOT
|
|
|
%{dracutlibdir}/modules.d/02systemd-networkd
|
|
|
%{dracutlibdir}/modules.d/35network-legacy
|
|
|
%{dracutlibdir}/modules.d/35network-manager
|
|
|
+%{dracutlibdir}/modules.d/35network-wicked
|
|
|
%{dracutlibdir}/modules.d/40network
|
|
|
%{dracutlibdir}/modules.d/90kernel-network-modules
|
|
|
%{dracutlibdir}/modules.d/95fcoe
|
|
@@ -575,9 +529,13 @@ rm -rf -- $RPM_BUILD_ROOT
|
|
|
%defattr(-,root,root,0755)
|
|
|
%{dracutlibdir}/dracut.conf.d/02-rescue.conf
|
|
|
%{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
|
|
|
-%{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Apr 06 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 053-1
|
|
|
+- new upstream release.
|
|
|
+- added O:mkinitrd, nash.
|
|
|
+
|
|
|
* Fri Apr 03 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 050-3
|
|
|
- added support for recursive symlink of /sbin/init.
|
|
|
|