]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
grub-mkconfig: Fix detecting .sig files as system images
authorJordan Glover <Golden_Miller83@protonmail.ch>
Wed, 29 Nov 2017 13:35:37 +0000 (08:35 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 6 Dec 2017 11:58:54 +0000 (12:58 +0100)
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>
util/grub-mkconfig_lib.in

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