Start clevis-luks-askpass.path from preset
Start clevis-luks-askpass.path service according to global policy defined in systemd presets Resolves: rhbz#2107078
This commit is contained in:
parent
9d54e7fff2
commit
339ed7dfb9
19
clevis.spec
19
clevis.spec
@ -1,6 +1,6 @@
|
|||||||
Name: clevis
|
Name: clevis
|
||||||
Version: 18
|
Version: 18
|
||||||
Release: 104%{?dist}
|
Release: 105%{?dist}
|
||||||
Summary: Automated decryption framework
|
Summary: Automated decryption framework
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -50,6 +50,7 @@ Requires: jose >= 8
|
|||||||
Requires: curl
|
Requires: curl
|
||||||
Requires: jq
|
Requires: jq
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
|
Requires(post): systemd
|
||||||
Recommends: cracklib-dicts
|
Recommends: cracklib-dicts
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -134,16 +135,8 @@ if getent group tss >/dev/null && ! groups %{name} | grep -q "\btss\b"; then
|
|||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%posttrans
|
%post systemd
|
||||||
# In case the clevis-luks-askpass is enabled, make sure it's using the
|
systemctl preset %{name}-luks-askpass.path >/dev/null 2>&1 || :
|
||||||
# correct target, which changed in v14.
|
|
||||||
[ "$(find /etc/systemd/system/ -name "clevis-luks-askpass*")" ] || exit 0
|
|
||||||
find /etc/systemd/system/ -name "clevis-luks-askpass*" \
|
|
||||||
| grep -q cryptsetup.target.wants && exit 0
|
|
||||||
|
|
||||||
find /etc/systemd/system/ -name "clevis-luks-askpass*" -exec rm {} +
|
|
||||||
systemctl enable clevis-luks-askpass.path >/dev/null 2>&1 || :
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -202,6 +195,10 @@ exit 0
|
|||||||
%attr(4755, root, root) %{_libexecdir}/%{name}-luks-udisks2
|
%attr(4755, root, root) %{_libexecdir}/%{name}-luks-udisks2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 02 2022 Sergio Arroutbi <sarroutb@redhat.com> - 18-105
|
||||||
|
- Start clevis-luks-askpass.path service according to global policy
|
||||||
|
Resolves: rhbz#2107078
|
||||||
|
|
||||||
* Thu Jul 21 2022 Sergio Arroutbi <sarroutb@redhat.com> - 18-104
|
* Thu Jul 21 2022 Sergio Arroutbi <sarroutb@redhat.com> - 18-104
|
||||||
- Improve boot performance by removing key check
|
- Improve boot performance by removing key check
|
||||||
Resolves: rhbz#2099701
|
Resolves: rhbz#2099701
|
||||||
|
Loading…
Reference in New Issue
Block a user