diff --git a/linux-sgx.spec b/linux-sgx.spec index 214e2a9..26539fa 100644 --- a/linux-sgx.spec +++ b/linux-sgx.spec @@ -1397,6 +1397,21 @@ fi %systemd_postun_with_restart mpa_registration.service +%if %{with_sysusers_scripts} +%pre -n sgx-pccs +%sysusers_create_compat %{SOURCE50} +%endif + +%post -n sgx-pccs +%systemd_post pccs.service + +%preun -n sgx-pccs +%systemd_preun pccs.service + +%postun -n sgx-pccs +%systemd_postun_with_restart pccs.service + + %if %{with_sysusers_scripts} %pre -n tdx-qgs %sysusers_create_compat %{SOURCE44}