grub显示两次相同的linux图像

在最近的更新之后,我在启动菜单中获得了相同Linux内核版本的多个条目。 我试过运行update-grub2但它也列出了两次相同的linux-image版本,即

 adnan@adnan-laptop:/boot$ sudo update-grub2 Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.32-26-generic Found initrd image: /boot/initrd.img-2.6.32-26-generic Found Windows 7 (loader) on /dev/sda1 Found linux image: /boot/vmlinuz-2.6.32-26-generic Found initrd image: /boot/initrd.img-2.6.32-26-generic Found memtest86+ image: /boot/memtest86+.bin done 

正如您所见,vmlinuz和initrd被多次发现。 但是/ boot中只有一个vmlinuz和initrd文件

 adnan@adnan-laptop:/boot$ ls -l total 15120 -rw-r--r-- 1 root root 646144 2010-11-24 15:58 abi-2.6.32-26-generic -rw-r--r-- 1 root root 110601 2010-11-24 15:58 config-2.6.32-26-generic drwxr-xr-x 3 root root 4096 2011-01-01 18:59 grub -rw-r--r-- 1 root root 8335528 2010-12-20 23:36 initrd.img-2.6.32-26-generic -rw-r--r-- 1 root root 160280 2010-03-23 14:40 memtest86+.bin -rw-r--r-- 1 root root 2156100 2010-11-24 15:58 System.map-2.6.32-26-generic -rw-r--r-- 1 root root 1336 2010-11-24 16:00 vmcoreinfo-2.6.32-26-generic -rw-r--r-- 1 root root 4050080 2010-11-24 15:58 vmlinuz-2.6.32-26-generic 

有人可以告诉我为什么update-grub2会发现vmlinuz和initrd两次? 以及如何阻止这种情况发生。

更新 : 在这里找到grub.cfg

我怎么想,你在/etc/grub.d有两个linux图像查找器,删除一个,右边的列表是:

 00_header 05_debian_theme 10_linux 20_memtest86+ 30_os-prober 40_custom 

更新grub时,这些脚本会查找操作系统。