From: Harald Hoyer harald@redhat.com
NOTE: working on testing this (bcl) --- anaconda.spec.in | 3 ++- dracut/anaconda-diskroot | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/anaconda.spec.in b/anaconda.spec.in index e457736..3931f05 100644 --- a/anaconda.spec.in +++ b/anaconda.spec.in @@ -47,6 +47,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %define pythonurlgrabberver 3.9.1-5 %define utillinuxver 2.15.1 %define syslinuxver 3.73 +%define dracutver 024-16
BuildRequires: audit-libs-devel BuildRequires: bzip2-devel @@ -205,7 +206,7 @@ documentation for working with this library. %package dracut Summary: The anaconda dracut module BuildArch: noarch -Requires: dracut >= 19 +Requires: dracut >= %{dracutver} Requires: dracut-network Requires: xz Requires: pykickstart diff --git a/dracut/anaconda-diskroot b/dracut/anaconda-diskroot index 051081b..21c8afe 100755 --- a/dracut/anaconda-diskroot +++ b/dracut/anaconda-diskroot @@ -12,7 +12,12 @@ run_checkisomd5() { [ -b $livedev ] && fs=$(blkid -s TYPE -o value $livedev) if [ "$fs" = "iso9660" -o "$fs" = "udf" ]; then [ -x /bin/plymouth ] && /bin/plymouth --hide-splash - checkisomd5 --verbose $livedev + if [ -n "$DRACUT_SYSTEMD" ]; then + p=$(str_replace "$livedev" "-" '\x2d') + systemctl start checkisomd5@${p}.service + else + checkisomd5 --verbose $livedev + fi if [ $? -ne 0 ]; then die "CD check failed!" exit 1
anaconda-patches@lists.fedorahosted.org