rpm: order -systemd post script after -networking

qubes-core-agent-networking package brings in new systemd units, which
needs to be enabled. Standard %systemd_post macro handles it only on
initial installation, but not on update. The function that handle
updates is in %post of qubes-core-agent-systemd package. To avoid
duplication, simply enforce proper installation order, instead of
modifying %post of qubes-core-agent-networking package.

OrderWithRequires influences only ordering, but does not introduce
actual dependency, so it's still possible to not install
qubes-core-agent-networking package.

Fixes 0e0c229 "rpm: enable qubes-network-uplink.service on install"
This commit is contained in:
Marek Marczykowski-Górecki 2021-01-09 05:18:14 +01:00
parent ab9627caf0
commit a28a381469
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -914,6 +914,8 @@ Conflicts: qubes-core-agent-sysvinit
Provides: qubes-core-vm-systemd = %{version}-%{release} Provides: qubes-core-vm-systemd = %{version}-%{release}
Obsoletes: qubes-core-vm-systemd < 4.0.0 Obsoletes: qubes-core-vm-systemd < 4.0.0
Conflicts: qubes-gui-agent < 4.1.0 Conflicts: qubes-gui-agent < 4.1.0
# preset units after possibly new are installed
OrderWithRequires(post): qubes-core-agent-networking
%description systemd %description systemd
The Qubes core startup configuration for SystemD init. The Qubes core startup configuration for SystemD init.