Accepting request 593111 from devel:openSUSE:Factory

OBS-URL: https://build.opensuse.org/request/show/593111
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shim?expand=0&rev=66
This commit is contained in:
Dominique Leuenberger 2018-04-04 09:03:01 +00:00 committed by Git OBS Bridge
commit 510844c590
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 3 08:37:55 UTC 2018 - glin@suse.com
- Install the certificates with a shim suffix to avoid conflicting
with other packages (bsc#1087847)
-------------------------------------------------------------------
Fri Mar 23 04:47:35 UTC 2018 - glin@suse.com

View File

@ -229,7 +229,7 @@ install -m 755 %{SOURCE3} %{buildroot}/%{_sbindir}/
install -d %{buildroot}/%{_sysconfdir}/uefi/certs/
for file in shim-*.der; do
fpr=$(openssl x509 -sha1 -fingerprint -inform DER -noout -in $file | cut -c 18- | cut -d ":" -f 1,2,3,4 | sed 's/://g')
install -m 644 $file %{buildroot}/%{_sysconfdir}/uefi/certs/$fpr.crt
install -m 644 $file %{buildroot}/%{_sysconfdir}/uefi/certs/${fpr}-shim.crt
done
# install the debug symbols