Make sure clevis-luks-askpass is using the correct path, if enabled
This commit is contained in:
parent
ce9256d835
commit
aedbfaae21
17
clevis.spec
17
clevis.spec
@ -1,6 +1,6 @@
|
|||||||
Name: clevis
|
Name: clevis
|
||||||
Version: 14
|
Version: 14
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Automated decryption framework
|
Summary: Automated decryption framework
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -126,6 +126,17 @@ if getent group tss >/dev/null && ! groups %{name} | grep -q "\btss\b"; then
|
|||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
# In case the clevis-luks-askpass is enabled, make sure it's using the
|
||||||
|
# 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
|
||||||
%{_datadir}/bash-completion/
|
%{_datadir}/bash-completion/
|
||||||
@ -171,6 +182,10 @@ exit 0
|
|||||||
%attr(4755, root, root) %{_libexecdir}/%{name}-luks-udisks2
|
%attr(4755, root, root) %{_libexecdir}/%{name}-luks-udisks2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Sep 05 2020 Sergio Correia <scorreia@redhat.com> - 14-3
|
||||||
|
- If clevis-luks-askpass is enabled, it may be using a wrong target,
|
||||||
|
since that changed in v14. Check and update it, if required.
|
||||||
|
|
||||||
* Mon Aug 31 2020 Sergio Correia <scorreia@redhat.com> - 14-2
|
* Mon Aug 31 2020 Sergio Correia <scorreia@redhat.com> - 14-2
|
||||||
- Update sources file with new v14 release.
|
- Update sources file with new v14 release.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user