#2 Add systemd-udev require.
Merged 4 years ago by kasong. Opened 4 years ago by vascom.
rpms/ vascom/kexec-tools master  into  master

file modified
+4
@@ -66,6 +66,10 @@ 

  Obsoletes: diskdumputils netdump kexec-tools-eppic

  %endif

  

+ %ifnarch s390x

+ Requires:       systemd-udev%{?_isa}

+ %endif

+ 

  #START INSERT

  

  #

It is needed to proper owning of /usr/lib/udev/rules.d directory.

Pull-Request has been merged by kasong

4 years ago

What's the reason to have the systemd-udev dependency skipped on s390x?

What's the reason to have the systemd-udev dependency skipped on s390x?

See this part of kexec-tools.spec:

%ifnarch s390x
install -m 755 %{SOURCE28} $RPM_BUILD_ROOT%{_udevrulesdir}/../kdump-udev-throttler
%endif
%ifnarch s390x ppc64 ppc64le

For s390x the ELF header is created in the kdump kernel and therefore kexec

udev rules are not required

install -m 644 %{SOURCE13} $RPM_BUILD_ROOT%{_udevrulesdir}/98-kexec.rules
%endif
%ifarch ppc64 ppc64le
install -m 644 %{SOURCE14} $RPM_BUILD_ROOT%{_udevrulesdir}/98-kexec.rules
%endif

S390 don't need udev rules. I think it's reasonable to skip udev dependency on that.

Makes sense then, thx for the details.

Metadata