* util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes

grub.d/README accidentally ends up executable for one reason or
another.  Ignore it.
This commit is contained in:
Colin Watson 2010-07-02 10:50:04 +01:00
parent 1c4827beff
commit 8d4a2fec0d
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2010-07-02 Colin Watson <cjwatson@ubuntu.com>
* util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
grub.d/README accidentally ends up executable for one reason or
another. Ignore it.
2010-07-02 Vladimir Serbinenko <phcoder@gmail.com> 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
* partmap/gpt.c (MAX_SECTOR_LOG): New definition. * partmap/gpt.c (MAX_SECTOR_LOG): New definition.

View file

@ -128,6 +128,7 @@ grub_file_is_not_garbage ()
if test -f "$1" ; then if test -f "$1" ; then
case "$1" in case "$1" in
*.dpkg-*) return 1 ;; # debian dpkg *.dpkg-*) return 1 ;; # debian dpkg
README*) return 1 ;; # documentation
esac esac
else else
return 1 return 1