Add zero file length check to make sure pesign didn't fail (rhbz 991808)
This commit is contained in:
parent
eee591ee95
commit
48fa95f9c8
|
@ -1658,6 +1658,10 @@ BuildKernel() {
|
|||
%if %{signmodules}
|
||||
# Sign the image if we're using EFI
|
||||
%pesign -s -i $KernelImage -o vmlinuz.signed
|
||||
if [ ! -s vmlinuz.signed ]; then
|
||||
echo "pesigning failed"
|
||||
exit 1
|
||||
fi
|
||||
mv vmlinuz.signed $KernelImage
|
||||
%endif
|
||||
$CopyKernel $KernelImage \
|
||||
|
@ -2338,6 +2342,9 @@ fi
|
|||
# ||----w |
|
||||
# || ||
|
||||
%changelog
|
||||
* Wed Aug 07 2013 Josh Boyer <jwboyer@redhat.com>
|
||||
- Add zero file length check to make sure pesign didn't fail (rhbz 991808)
|
||||
|
||||
* Tue Aug 06 2013 Justin M. Forbes <jforbes@redhat.com> 3.10.5-100
|
||||
- update s390x config [Dan Horák]
|
||||
|
||||
|
|
Loading…
Reference in New Issue