grub-mkconfig: Fix detecting .sig files as system images

grub-mkconfig detects detached RSA signatures for kernel images used for
signature checking as valid images and adds them to grub.cfg as separate
menu entries. This patch adds .sig extension to common blacklist.

Signed-off-by: Jordan Glover <Golden_Miller83@protonmail.ch>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Jordan Glover 2017-11-29 08:35:37 -05:00 committed by Daniel Kiper
parent 2dc163bf69
commit 5033080eb6

View file

@ -188,6 +188,7 @@ grub_file_is_not_garbage ()
*.dpkg-*) return 1 ;; # debian dpkg *.dpkg-*) return 1 ;; # debian dpkg
*.rpmsave|*.rpmnew) return 1 ;; *.rpmsave|*.rpmnew) return 1 ;;
README*|*/README*) return 1 ;; # documentation README*|*/README*) return 1 ;; # documentation
*.sig) return 1 ;; # signatures
esac esac
else else
return 1 return 1