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:
parent
2dc163bf69
commit
5033080eb6
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue